Support » Plugin: Search Unleashed » Plugin is displaying drafts & scheduled posts

  • I’ve been forced to disable this plugin and search for a replacement as it was showing my drafts and scheduled posts. I was using Mysql full-text, but it also occurred with indexed as well and Lucene just resulted in php errors. I didn’t even noticed this hasn’t been updated for 1.5+ years. Oh well perhaps yolink or wp-search will work better.

Viewing 1 replies (of 1 total)
  • I fixed this by adding the following line of code to spiders.php after line 82:

    $this->post_sql .= " AND {$wpdb->posts}.post_status!='trash' AND {$wpdb->posts}.post_status!='pending' AND {$wpdb->posts}.post_status!='draft' AND {$wpdb->posts}.post_status!='auto-draft' AND {$wpdb->posts}.post_status!='future' AND {$wpdb->posts}.post_status!='private' AND {$wpdb->posts}.post_status!='inherit'";
Viewing 1 replies (of 1 total)
  • The topic ‘Plugin is displaying drafts & scheduled posts’ is closed to new replies.