Skip to content

Commit 750f743

Browse files
Coding Standards: Use strict comparison in media_upload_form_handler().
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
1 parent 1b1e35d commit 750f743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ function media_upload_form_handler() {
773773
$post['menu_order'] = $attachment['menu_order'];
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'];
779779
}

0 commit comments

Comments
 (0)