Make WordPress Core

Ticket #28017: wp-3-9.patch

File wp-3-9.patch, 816 bytes (added by internetrnd, 9 years ago)

Patch for 3.9 branch

  • wp-includes/query.php

    diff -r 0cb504a34f2c wp-includes/query.php
    a b  
    23722372                               if ( !$ptype_obj || !$ptype_obj->query_var || empty($q[ $ptype_obj->query_var ]) )
    23732373                                       continue;
    23742374
    2375                                if ( ! $ptype_obj->hierarchical || strpos($q[ $ptype_obj->query_var ], '/') === false ) {
     2375                               if ( ! $ptype_obj->hierarchical ) {
    23762376                                       // Non-hierarchical post_types & parent-level-hierarchical post_types can directly use 'name'
    23772377                                       $q['name'] = $q[ $ptype_obj->query_var ];
    23782378                               } else {