From 1422cf9d4953fb4ba37a343ee96e1bdb385114d5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 16 Feb 2025 18:35:24 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `pingback()`. Follow-up to [2983], [38852]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59827 git-svn-id: http://core.svn.wordpress.org/trunk@59169 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 616bb693ea..e7b96c33b5 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -3124,7 +3124,7 @@ function pingback( $content, $post ) { */ foreach ( (array) $post_links_temp as $link_test ) { // If we haven't pung it already and it isn't a link to itself. - if ( ! in_array( $link_test, $pung, true ) && ( url_to_postid( $link_test ) != $post->ID ) + if ( ! in_array( $link_test, $pung, true ) && ( url_to_postid( $link_test ) !== $post->ID ) // Also, let's never ping local attachments. && ! is_local_attachment( $link_test ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index b528141bff..788d029fb6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59826'; +$wp_version = '6.8-alpha-59827'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.