Ticket #22671: 22671.diff
| File 22671.diff, 683 bytes (added by , 12 years ago) |
|---|
-
src/wp-includes/post.php
838 838 // Inherit status from the parent 839 839 if ( $post->post_parent && ( $post->ID != $post->post_parent ) ) { 840 840 $parent_post_status = get_post_status( $post->post_parent ); 841 if ( 'trash' == $parent_post_status ) {841 if ( 'trash' === $parent_post_status ) { 842 842 return get_post_meta( $post->post_parent, '_wp_trash_meta_status', true ); 843 } elseif ( 'auto-draft' === $parent_post_status ) { 844 return 'publish'; 843 845 } else { 844 846 return $parent_post_status; 845 847 }