Changeset 28803 for trunk/src/wp-includes/query.php
- Timestamp:
- 06/23/2014 01:14:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r28783 r28803 2373 2373 continue; 2374 2374 2375 if ( ! $ptype_obj->hierarchical || strpos($q[ $ptype_obj->query_var ], '/') === false) {2376 // Non-hierarchical post _types & parent-level-hierarchical post_types can directly use 'name'2375 if ( ! $ptype_obj->hierarchical ) { 2376 // Non-hierarchical post types can directly use 'name'. 2377 2377 $q['name'] = $q[ $ptype_obj->query_var ]; 2378 2378 } else { 2379 // Hierarchical post _types will operate through the2379 // Hierarchical post types will operate through 'pagename'. 2380 2380 $q['pagename'] = $q[ $ptype_obj->query_var ]; 2381 2381 $q['name'] = '';
Note: See TracChangeset
for help on using the changeset viewer.