Changeset 47550 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r47233 r47550 784 784 785 785 if ( $for_post ) { 786 $edit = ! ( in_array( $post->post_status, array( 'draft', 'pending' ) ) && ( ! $post->post_date_gmt || '0000-00-00 00:00:00' == $post->post_date_gmt ) );786 $edit = ! ( in_array( $post->post_status, array( 'draft', 'pending' ), true ) && ( ! $post->post_date_gmt || '0000-00-00 00:00:00' == $post->post_date_gmt ) ); 787 787 } 788 788 … … 1298 1298 $i++; 1299 1299 // get_hidden_meta_boxes() doesn't apply in the block editor. 1300 $hidden_class = ( ! $screen->is_block_editor() && in_array( $box['id'], $hidden ) ) ? ' hide-if-js' : '';1300 $hidden_class = ( ! $screen->is_block_editor() && in_array( $box['id'], $hidden, true ) ) ? ' hide-if-js' : ''; 1301 1301 echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes( $box['id'], $page ) . $hidden_class . '" ' . '>' . "\n"; 1302 1302 if ( 'dashboard_browser_nag' != $box['id'] ) { … … 1454 1454 } 1455 1455 $i++; 1456 $hidden_class = in_array( $box['id'], $hidden ) ? 'hide-if-js' : '';1456 $hidden_class = in_array( $box['id'], $hidden, true ) ? 'hide-if-js' : ''; 1457 1457 1458 1458 $open_class = ''; … … 1839 1839 } 1840 1840 1841 if ( in_array( $details['type'], array( 'error', 'success', 'warning', 'info' ) ) ) {1841 if ( in_array( $details['type'], array( 'error', 'success', 'warning', 'info' ), true ) ) { 1842 1842 $details['type'] = 'notice-' . $details['type']; 1843 1843 } … … 2374 2374 continue; 2375 2375 } 2376 $classes[] = in_array( $t, $button_shorthand ) ? 'button-' . $t : $t;2376 $classes[] = in_array( $t, $button_shorthand, true ) ? 'button-' . $t : $t; 2377 2377 } 2378 2378 // Remove empty items, remove duplicate items, and finally build a string.
Note: See TracChangeset
for help on using the changeset viewer.