Changeset 16819
- Timestamp:
- 12/08/2010 09:17:01 PM (14 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r16818 r16819 4026 4026 4027 4027 // we're only concerned with published, non-hierarchical objects 4028 $ptype_obj = get_post_type_object( $post->post_type ); 4029 if ( $post->post_status != 'publish' || !$ptype_obj || $ptype_obj->hierarchical ) 4028 if ( $post->post_status != 'publish' || is_post_type_hierarchical( $post->post_type ) ) 4030 4029 return; 4031 4030 -
trunk/wp-includes/query.php
r16818 r16819 3233 3233 3234 3234 // Do not attempt redirect for hierarchical post types 3235 $ptype_obj = get_post_type_object( $post_type ); 3236 if ( !$ptype_obj || $ptype_obj->hierarchical ) 3235 if ( is_post_type_hierarchical( $post_type ) ) 3237 3236 return; 3238 3237
Note: See TracChangeset
for help on using the changeset viewer.