WordPress.org

Make WordPress Core

Ticket #9643: 9643-query.php.diff

File 9643-query.php.diff, 539 bytes (added by mtekk, 5 years ago)

This will get us back to pre #8619 patch working order

  • query.php

     
    18151815 
    18161816                // Category stuff for nice URLs 
    18171817                if ( '' != $q['category_name'] && !$this->is_singular ) { 
    1818                         $q['category_name'] = sanitize_title($q['category_name']); 
    18191818                        $reqcat = get_category_by_path($q['category_name']); 
    18201819                        $q['category_name'] = str_replace('%2F', '/', urlencode(urldecode($q['category_name']))); 
    18211820                        $cat_paths = '/' . trim($q['category_name'], '/');