Make WordPress Core

Changeset 21187


Ignore:
Timestamp:
06/30/2012 07:47:22 AM (12 years ago)
Author:
markjaquith
Message:

urldecode() search strings that come in from /search/foo. props SergeyBiryukov. fixes #13961

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r21073 r21187  
    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() )
     2181                $q['s'] = urldecode($q['s']);
    21802182            if ( !empty($q['sentence']) ) {
    21812183                $q['search_terms'] = array($q['s']);
Note: See TracChangeset for help on using the changeset viewer.