diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 2d9fea3d41..419b66c6df 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -290,7 +290,13 @@ if ( comments_open( $post ) || pings_open( $post ) || post_type_supports( $post_ add_meta_box( 'commentstatusdiv', __( 'Discussion' ), 'post_comment_status_meta_box', null, 'normal', 'core' ); } -if ( 'publish' === get_post_status( $post ) || 'private' === get_post_status( $post ) ) { +$stati = get_post_stati( array( 'public' => true ) ); +if ( empty( $stati ) ) { + $stati = array( 'publish' ); +} +$stati[] = 'private'; + +if ( in_array( get_post_status( $post ), $stati ) ) { // If the post type support comments, or the post has comments, allow the // Comments meta box. if ( comments_open( $post ) || pings_open( $post ) || $post->comment_count > 0 || post_type_supports( $post_type, 'comments' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 4a3ede57ff..02589a62a5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34514'; +$wp_version = '4.4-alpha-34515'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.