Ticket #14823: 14823.001.diff
| File 14823.001.diff, 747 bytes (added by , 16 years ago) |
|---|
-
wp-includes/post.php
2074 2074 2075 2075 $post = get_post($postid, $mode); 2076 2076 2077 if ( 2077 if ( 2078 2078 ( OBJECT == $mode && empty( $post->ID ) ) || 2079 2079 ( OBJECT != $mode && empty( $post['ID'] ) ) 2080 2080 ) … … 3058 3058 $number = (int) $number; 3059 3059 $offset = (int) $offset; 3060 3060 3061 // Make sure the post type is hierarchical3062 $hierarchical_post_types = get_post_types( array( 'hierarchical' => true ) );3063 if ( !in_array( $post_type, $hierarchical_post_types ) )3064 return false;3065 3066 3061 // Make sure we have a valid post status 3067 3062 if ( !in_array($post_status, get_post_stati()) ) 3068 3063 return false;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)