WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/24/2011 12:20:21 AM (9 years ago)
Author:
dd32
Message:

Switch to sanitize_title_for_query() for Query sanitization (allows for pre-3.3 page slugs to be viewable), Don't update page slugs to new slug-types when the slug is not being changed, Don't issue a XHR if the page slug hasn't changed. Group effort props xknown, markjaquith, nacin. See #19292

File:
1 edited

Legend:

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

    r19216 r19444  
    18391839
    18401840        if ( !empty($q['tag_slug__in']) ) {
    1841             $q['tag_slug__in'] = array_map('sanitize_title', array_unique( (array) $q['tag_slug__in'] ) );
     1841            $q['tag_slug__in'] = array_map('sanitize_title_for_query', array_unique( (array) $q['tag_slug__in'] ) );
    18421842            $tax_query[] = array(
    18431843                'taxonomy' => 'post_tag',
     
    18481848
    18491849        if ( !empty($q['tag_slug__and']) ) {
    1850             $q['tag_slug__and'] = array_map('sanitize_title', array_unique( (array) $q['tag_slug__and'] ) );
     1850            $q['tag_slug__and'] = array_map('sanitize_title_for_query', array_unique( (array) $q['tag_slug__and'] ) );
    18511851            $tax_query[] = array(
    18521852                'taxonomy' => 'post_tag',
Note: See TracChangeset for help on using the changeset viewer.