Changeset 47550 for trunk/src/wp-admin/includes/meta-boxes.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r47228 r47550 335 335 <span class="spinner"></span> 336 336 <?php 337 if ( ! in_array( $post->post_status, array( 'publish', 'future', 'private' ) ) || 0 == $post->ID ) {337 if ( ! in_array( $post->post_status, array( 'publish', 'future', 'private' ), true ) || 0 == $post->ID ) { 338 338 if ( $can_publish ) : 339 339 if ( ! empty( $post->post_date_gmt ) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : … … 472 472 } 473 473 // Add in the current one if it isn't there yet, in case the current theme doesn't support it. 474 if ( $post_format && ! in_array( $post_format, $post_formats[0] ) ) {474 if ( $post_format && ! in_array( $post_format, $post_formats[0], true ) ) { 475 475 $post_formats[0][] = $post_format; 476 476 } … … 848 848 } else { 849 849 $hidden = get_hidden_meta_boxes( get_current_screen() ); 850 if ( ! in_array( 'commentsdiv', $hidden ) ) {850 if ( ! in_array( 'commentsdiv', $hidden, true ) ) { 851 851 ?> 852 852 <script type="text/javascript">jQuery(document).ready(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script> … … 1183 1183 $rels = preg_split( '/\s+/', $link_rel ); 1184 1184 1185 if ( '' != $value && in_array( $value, $rels ) ) {1185 if ( '' != $value && in_array( $value, $rels, true ) ) { 1186 1186 echo ' checked="checked"'; 1187 1187 } … … 1197 1197 echo ' checked="checked"'; 1198 1198 } 1199 if ( 'identity' == $class && in_array( 'me', $rels ) ) {1199 if ( 'identity' == $class && in_array( 'me', $rels, true ) ) { 1200 1200 echo ' checked="checked"'; 1201 1201 } … … 1536 1536 $stati[] = 'private'; 1537 1537 1538 if ( in_array( get_post_status( $post ), $stati ) ) {1538 if ( in_array( get_post_status( $post ), $stati, true ) ) { 1539 1539 // If the post type support comments, or the post has comments, 1540 1540 // allow the Comments meta box.
Note: See TracChangeset
for help on using the changeset viewer.