WordPress.org

Make WordPress Core

Ticket #13961: 13961.4.patch

File 13961.4.patch, 571 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-includes/query.php

     
    21772177                if ( !empty($q['s']) ) {
    21782178                        // added slashes screw with quote grouping when done early, so done later
    21792179                        $q['s'] = stripslashes($q['s']);
    2180                         if ( empty( $_GET['s'] ) && is_main_query() )
     2180                        if ( empty( $_GET['s'] ) && $this->is_main_query() )
    21812181                                $q['s'] = urldecode($q['s']);
    21822182                        if ( !empty($q['sentence']) ) {
    21832183                                $q['search_terms'] = array($q['s']);