Changeset 56174 for trunk/src/wp-admin/includes/meta-boxes.php
- Timestamp:
- 07/09/2023 07:50:52 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r55949 r56174 1673 1673 do_action_deprecated( 'dbx_post_advanced', array( $post ), '3.7.0', 'add_meta_boxes' ); 1674 1674 1675 // Allow the Discussion meta box to show up if the post type supports comments, 1676 // or if comments or pings are open. 1675 /* 1676 * Allow the Discussion meta box to show up if the post type supports comments, 1677 * or if comments or pings are open. 1678 */ 1677 1679 if ( comments_open( $post ) || pings_open( $post ) || post_type_supports( $post_type, 'comments' ) ) { 1678 1680 add_meta_box( 'commentstatusdiv', __( 'Discussion' ), 'post_comment_status_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); … … 1686 1688 1687 1689 if ( in_array( get_post_status( $post ), $stati, true ) ) { 1688 // If the post type support comments, or the post has comments, 1689 // allow the Comments meta box. 1690 /* 1691 * If the post type support comments, or the post has comments, 1692 * allow the Comments meta box. 1693 */ 1690 1694 if ( comments_open( $post ) || pings_open( $post ) || $post->comment_count > 0 || post_type_supports( $post_type, 'comments' ) ) { 1691 1695 add_meta_box( 'commentsdiv', __( 'Comments' ), 'post_comment_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
Note: See TracChangeset
for help on using the changeset viewer.