WordPress.org

Make WordPress Core

Ticket #13961: 13961.3.patch

File 13961.3.patch, 527 bytes (added by SergeyBiryukov, 2 years ago)
  • wp-includes/query.php

     
    21782178                if ( !empty($q['s']) ) { 
    21792179                        // added slashes screw with quote grouping when done early, so done later 
    21802180                        $q['s'] = stripslashes($q['s']); 
     2181                        if ( empty( $_GET['s'] ) && is_main_query() ) 
     2182                                $q['s'] = urldecode($q['s']); 
    21812183                        if ( !empty($q['sentence']) ) { 
    21822184                                $q['search_terms'] = array($q['s']); 
    21832185                        } else {