Changeset 58129 for trunk/src/wp-admin/includes/meta-boxes.php
- Timestamp:
- 05/10/2024 06:07:17 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r57136 r58129 1680 1680 } 1681 1681 1682 $stati = get_post_stati( array( 'public' => true ) ); 1683 if ( empty( $stati ) ) { 1684 $stati = array( 'publish' ); 1685 } 1686 $stati[] = 'private'; 1687 1688 if ( in_array( get_post_status( $post ), $stati, true ) ) { 1682 $statuses = get_post_stati( array( 'public' => true ) ); 1683 1684 if ( empty( $statuses ) ) { 1685 $statuses = array( 'publish' ); 1686 } 1687 1688 $statuses[] = 'private'; 1689 1690 if ( in_array( get_post_status( $post ), $statuses, true ) ) { 1689 1691 /* 1690 1692 * If the post type support comments, or the post has comments,
Note: See TracChangeset
for help on using the changeset viewer.