Make WordPress Core


Ignore:
Timestamp:
03/10/2025 08:01:47 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in _fix_attachment_links().

Follow-up to [20308], [58360].

See #62279.

File:
1 edited

Legend:

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

    r59896 r59962  
    11781178        $rel_id = (int) $rel_match[1];
    11791179
    1180         if ( ! $url_id || ! $rel_id || $url_id != $rel_id || ! str_contains( $url_match[0], $site_url ) ) {
     1180        if ( ! $url_id || ! $rel_id || $url_id !== $rel_id || ! str_contains( $url_match[0], $site_url ) ) {
    11811181            continue;
    11821182        }
Note: See TracChangeset for help on using the changeset viewer.