Changeset 47808 for trunk/src/wp-admin/includes/screen.php
- Timestamp:
- 05/16/2020 06:40:52 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/screen.php
r47557 r47808 119 119 } 120 120 // Submit box cannot be hidden. 121 if ( 'submitdiv' == $box['id'] || 'linksubmitdiv'== $box['id'] ) {121 if ( 'submitdiv' === $box['id'] || 'linksubmitdiv' === $box['id'] ) { 122 122 continue; 123 123 } … … 162 162 if ( $use_defaults ) { 163 163 $hidden = array(); 164 if ( 'post' == $screen->base ) {165 if ( 'post' == $screen->post_type || 'page' == $screen->post_type || 'attachment' == $screen->post_type) {164 if ( 'post' === $screen->base ) { 165 if ( in_array( $screen->post_type, array( 'post', 'page', 'attachment' ), true ) ) { 166 166 $hidden = array( 'slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv' ); 167 167 } else {
Note: See TracChangeset
for help on using the changeset viewer.