WordPress.org

Make WordPress Core

Ticket #13961: 13961.patch

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

     
    21162116                if ( !empty($q['s']) ) {
    21172117                        // added slashes screw with quote grouping when done early, so done later
    21182118                        $q['s'] = stripslashes($q['s']);
     2119                        if ( empty( $_GET['s'] ) )
     2120                                $q['s'] = urldecode($q['s']);
    21192121                        if ( !empty($q['sentence']) ) {
    21202122                                $q['search_terms'] = array($q['s']);
    21212123                        } else {