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
This commit is contained in:
Sergey Biryukov 2025-02-16 18:35:24 +00:00
parent 6c1001fb95
commit 1422cf9d49
2 changed files with 2 additions and 2 deletions

View File

@ -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 )
) {

View File

@ -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.