Skip to content

Commit 3b5b6ed

Browse files
Coding Standards: Use strict comparison in pingback().
Follow-up to [2983], [38852]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59827 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 39f8ea3 commit 3b5b6ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3124,7 +3124,7 @@ function pingback( $content, $post ) {
31243124
*/
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 )
31303130
) {

0 commit comments

Comments
 (0)