Make WordPress Core


Ignore:
Timestamp:
04/16/2009 09:47:42 PM (18 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.