Changeset 47550 for trunk/src/wp-includes/comment.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r47526 r47550 1386 1386 } 1387 1387 1388 if ( ! $force_delete && EMPTY_TRASH_DAYS && ! in_array( wp_get_comment_status( $comment ), array( 'trash', 'spam' ) ) ) {1388 if ( ! $force_delete && EMPTY_TRASH_DAYS && ! in_array( wp_get_comment_status( $comment ), array( 'trash', 'spam' ), true ) ) { 1389 1389 return wp_trash_comment( $comment_id ); 1390 1390 } … … 2753 2753 foreach ( (array) $to_ping as $tb_ping ) { 2754 2754 $tb_ping = trim( $tb_ping ); 2755 if ( ! in_array( $tb_ping, $pinged ) ) {2755 if ( ! in_array( $tb_ping, $pinged, true ) ) { 2756 2756 trackback( $tb_ping, $post_title, $excerpt, $post->ID ); 2757 2757 $pinged[] = $tb_ping; … … 2837 2837 foreach ( (array) $post_links_temp as $link_test ) { 2838 2838 // If we haven't pung it already and it isn't a link to itself. 2839 if ( ! in_array( $link_test, $pung ) && ( url_to_postid( $link_test ) != $post->ID )2839 if ( ! in_array( $link_test, $pung, true ) && ( url_to_postid( $link_test ) != $post->ID ) 2840 2840 // Also, let's never ping local attachments. 2841 2841 && ! is_local_attachment( $link_test ) ) { … … 3118 3118 */ 3119 3119 $post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) ); 3120 if ( ! in_array( $posts[0]->post_type, $post_types ) ) {3120 if ( ! in_array( $posts[0]->post_type, $post_types, true ) ) { 3121 3121 return $posts; 3122 3122 } … … 3163 3163 /** This filter is documented in wp-includes/comment.php */ 3164 3164 $post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) ); 3165 if ( ! in_array( $post->post_type, $post_types ) ) {3165 if ( ! in_array( $post->post_type, $post_types, true ) ) { 3166 3166 return $open; 3167 3167 }
Note: See TracChangeset
for help on using the changeset viewer.