Skip to content

Instantly share code, notes, and snippets.

@mani-monaj
Last active December 28, 2015 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mani-monaj/bc0f01cecce1ce41f13a to your computer and use it in GitHub Desktop.
Save mani-monaj/bc0f01cecce1ce41f13a to your computer and use it in GitHub Desktop.
Temporary patch to fix wp-jalali 4.5's bug with Wordpress 3.7.x's media and post search
  1. Open wp-content/plugins/wp-jalali/wp-jalali.php
  2. Locate function mps_jalali_query($where) { (Line 527 on v 4.5)
  3. Add these lines after that
  if (is_admin()) {
    // Skip admin pages
    return $where;
  }

This is how it should look like:

function mps_jalali_query($where) {
  if (is_admin()) {
    // Skip admin pages
    return $where;
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment