mirror of
git://develop.git.wordpress.org/
synced 2025-03-19 19:39:51 +01:00
Coding Standards: Use strict comparison in _fix_attachment_links()
.
Follow-up to [20308], [58360]. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59962 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3ec136bfa5
commit
a834d96507
@ -1177,7 +1177,7 @@ function _fix_attachment_links( $post ) {
|
||||
$url_id = (int) $url_match[2];
|
||||
$rel_id = (int) $rel_match[1];
|
||||
|
||||
if ( ! $url_id || ! $rel_id || $url_id != $rel_id || ! str_contains( $url_match[0], $site_url ) ) {
|
||||
if ( ! $url_id || ! $rel_id || $url_id !== $rel_id || ! str_contains( $url_match[0], $site_url ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user