WordPress.org

Make WordPress Core

Ticket #26365: post.2.diff

File post.2.diff, 405 bytes (added by methnen, 5 years ago)

Updated post patch.

  • wp-includes/post.php

     
    902902                }
    903903
    904904        }
     905        // Inherit status from the parent
     906        elseif ( 'inherit' == $post->post_status && $post->post_parent ) {
     907                return get_post_status( $post->post_parent );
     908        }
    905909
    906910        return $post->post_status;
    907911}