Support » Plugin: Search Everything » Consider wrapping “se_no_future” from “posts_where” filter in is_admin();

  • Hey.

    The filter callback “se_no_future” (Specifically: search-everything.php:217) should imo be wrapped in the conditional is_admin() function.

    As it stands now, you cannot search future posts within WP Admin on custom posts types.
    (Haven’t tested with builtin post types)

    I’m imagining something along those lines will do.

    if( ! is_admin() ) {
        add_filter( 'posts_where', array( &$this, 'se_no_future' ) );
    }

    Obviously such change should be tested thoroughly, I don’t have enough insight into the plugin to know what consequences will be.

    Kind Regards.
    – Allan Rehhoff

    • This topic was modified 3 years, 1 month ago by rehhoff.
    • This topic was modified 3 years, 1 month ago by rehhoff.
  • The topic ‘Consider wrapping “se_no_future” from “posts_where” filter in is_admin();’ is closed to new replies.