Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in `media_upload_form_handler…
Browse files Browse the repository at this point in the history
…()`.

Follow-up to [10390].

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

git-svn-id: https://develop.svn.wordpress.org/trunk@59497 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Dec 7, 2024
1 parent 1b1e35d commit 750f743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ function media_upload_form_handler() {
$post['menu_order'] = $attachment['menu_order'];
}

if ( isset( $send_id ) && $attachment_id == $send_id ) {
if ( isset( $send_id ) && $attachment_id === $send_id ) {
if ( isset( $attachment['post_parent'] ) ) {
$post['post_parent'] = $attachment['post_parent'];
}
Expand Down

0 comments on commit 750f743

Please sign in to comment.