Viewing 7 replies - 1 through 7 (of 7 total)
  • I don’t get this error, also on 3.8 here, just wanted to let you know

    Have you checked your log files? I also get this error. Maybe you’ll see the error if you enable the debug log file.

    Note that the error only shows up, and breaks functionality, when WP_DEBUG is outputting to the screen. You can ‘fix’ the problem by disabling WP_DEBUG or switching it to log instead of display.

    (Not my plugin, but I do plan to hopefully resolve the issue directly as well in the future, though, too.)

    I’ve done the following:

    Replace
    $search_terms = array_map( ‘_search_terms_tidy’, $matches[0] );

    with
    $search_terms = $matches[0];

    and that fixes up the first issue.

    While testing, I found another error: If the first post that would be returned is in the trash, the undefined $stat would error and the notice breaks the AJAX. Rather than include a case to define $stat in that situation, I decided I’d rather not have trashed posts show up in search results for this.

    Thus, I modified the ajax query to change:
    AND post_status != ‘revision’

    to
    AND post_status NOT IN (‘revision’,’trash’)

    and now trashed posts are no longer returned.

    Plugin Author Julio Potier

    (@juliobox)

    thank you

    @julio Potier

    You say thank you. Does this mean you intend to add Jason Lemahieu his fix to a next update?

    Plugin Author Julio Potier

    (@juliobox)

    A fix is coming today ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘_search_terms_tidy in WordPress 3.7’ is closed to new replies.