Ticket #26365: post.diff
File post.diff, 511 bytes (added by , 11 years ago) |
---|
-
wp-includes/post.php
812 812 if ( $post->post_parent && ( $post->ID != $post->post_parent ) ) 813 813 return get_post_status($post->post_parent); 814 814 } 815 // Inherit status from the parent 816 elseif ( 'inherit' == $post->post_status && $post->post_parent ) { 817 return get_post_status( $post->post_parent ); 818 } 815 819 816 820 return $post->post_status; 817 821 }