Make WordPress Core

Changeset 59497


Ignore:
Timestamp:
12/07/2024 10:06:56 PM (7 weeks ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in media_upload_form_handler().

Follow-up to [10390].

Props deepakrohilla, iflairwebtechnologies, mukesh27, dingguodong, aristath.
Fixes #62009.

File:
1 edited

Legend:

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

    r59120 r59497  
    774774            }
    775775
    776             if ( isset( $send_id ) && $attachment_id == $send_id ) {
     776            if ( isset( $send_id ) && $attachment_id === $send_id ) {
    777777                if ( isset( $attachment['post_parent'] ) ) {
    778778                    $post['post_parent'] = $attachment['post_parent'];
Note: See TracChangeset for help on using the changeset viewer.