WordPress.org

Make WordPress Core

Changeset 10956


Ignore:
Timestamp:
04/16/09 21:47:42 (5 years ago)
Author:
markjaquith
Message:

Sanitize when querying against category name so that multiple-word subcategories match. props filosofo. fixes #8619

File:
1 edited

Legend:

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

    r10920 r10956  
    18161816        // Category stuff for nice URLs 
    18171817        if ( '' != $q['category_name'] && !$this->is_singular ) { 
     1818            $q['category_name'] = sanitize_title($q['category_name']); 
    18181819            $reqcat = get_category_by_path($q['category_name']); 
    18191820            $q['category_name'] = str_replace('%2F', '/', urlencode(urldecode($q['category_name']))); 
Note: See TracChangeset for help on using the changeset viewer.