Advertisement
Guest User

Relevanssi & JSON API

a guest
May 11th, 2011
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. Change this in /singletons/introspection.php:
  2.     if (!empty($query)) {
  3.       query_posts($query);
  4.     }
  5.  
  6. To this:
  7.     if (!empty($query)) {
  8.         if (isset($query['s']) && function_exists('relevanssi_do_query')) {
  9.             relevanssi_do_query($query);
  10.         }
  11.         else {
  12.           query_posts($query);
  13.         }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement