WordPress.org

Ready to get started?Download WordPress

Forums

Search Everything
Breaks admin search function for internal linking (4 posts)

  1. audvin
    Member
    Posted 2 years ago #

    When you want to link to other internal posts or pages, the edit window allows you to search for these pages. This plugin breaks this function, rendering it's search function useless.

    http://wordpress.org/extend/plugins/search-everything/

  2. NelsNose
    Member
    Posted 2 years ago #

    I can confirm this is happening as well.

  3. NelsNose
    Member
    Posted 2 years ago #

    I was able to get search/SE working for internal links on the admin page/link dialog popup.

    The issue is that $wp_query->query_vars['s'] is not set by that form, it uses $_POST['search'] instead.

    In search-everything.php, everywhere there is a if (!empty($wp_query->query_vars['s'])), I added if($_POST['search']) {$wp_query->query_vars['s'] = $_POST['search']; } on the line before.
    The only exception to the method is the conditional statement at 153, which is a shorthand method.

    Then, and though it pains me, I hacked the core /includes/class-wp-editor.php. On line 695, I changed the suppress_filters value to 'FALSE'.

    I know this probably isn't ideal, but I really needed to get this working for a client. The obvious drawback is that a WP update will likely break this again.

  4. zabatonni
    Member
    Posted 2 years ago #

    is there anybody else having same issue and trying to solve it without touching core pls?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic