Changeset 34515
- Timestamp:
- 09/24/2015 08:01:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r34486 r34515 291 291 } 292 292 293 if ( 'publish' === get_post_status( $post ) || 'private' === get_post_status( $post ) ) { 293 $stati = get_post_stati( array( 'public' => true ) ); 294 if ( empty( $stati ) ) { 295 $stati = array( 'publish' ); 296 } 297 $stati[] = 'private'; 298 299 if ( in_array( get_post_status( $post ), $stati ) ) { 294 300 // If the post type support comments, or the post has comments, allow the 295 301 // Comments meta box.
Note: See TracChangeset
for help on using the changeset viewer.