do_action_deprecated( 'dbx_post_advanced', array
( $post ), '3.7.0', 'add_meta_boxes'
);
/*
* Allow the Discussion meta box to show up if the post type supports comments,
* or if comments or pings are open.
*/
if ( comments_open( $post ) ||
pings_open( $post ) ||
post_type_supports( $post_type, 'comments'
) ) { add_meta_box( 'commentstatusdiv',
__( 'Discussion'
), 'post_comment_status_meta_box', null, 'normal', 'core', array
( '__back_compat_meta_box' => true
) );
} $stati =
get_post_stati( array
( 'public' => true
) );
if ( empty( $stati ) ) { $stati = array
( 'publish'
);
} $stati[] = 'private';
if ( in_array( get_post_status( $post ),
$stati, true
) ) { /*
* If the post type support comments, or the post has comments,
* allow the Comments meta box.
*/