Ticket #28017: wp-3-9.patch
File wp-3-9.patch, 816 bytes (added by , 9 years ago) |
---|
-
wp-includes/query.php
diff -r 0cb504a34f2c wp-includes/query.php
a b 2372 2372 if ( !$ptype_obj || !$ptype_obj->query_var || empty($q[ $ptype_obj->query_var ]) ) 2373 2373 continue; 2374 2374 2375 if ( ! $ptype_obj->hierarchical || strpos($q[ $ptype_obj->query_var ], '/') === false) {2375 if ( ! $ptype_obj->hierarchical ) { 2376 2376 // Non-hierarchical post_types & parent-level-hierarchical post_types can directly use 'name' 2377 2377 $q['name'] = $q[ $ptype_obj->query_var ]; 2378 2378 } else {