Make WordPress Core

Changeset 59827


Ignore:
Timestamp:
02/16/2025 06:33:58 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in pingback().

Follow-up to [2983], [38852].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r59826 r59827  
    31253125    foreach ( (array) $post_links_temp as $link_test ) {
    31263126        // If we haven't pung it already and it isn't a link to itself.
    3127         if ( ! in_array( $link_test, $pung, true ) && ( url_to_postid( $link_test ) != $post->ID )
     3127        if ( ! in_array( $link_test, $pung, true ) && ( url_to_postid( $link_test ) !== $post->ID )
    31283128            // Also, let's never ping local attachments.
    31293129            && ! is_local_attachment( $link_test )
Note: See TracChangeset for help on using the changeset viewer.