Coding Standards: Use strict comparison in media_upload_form_handler().

Follow-up to [10390].

Props deepakrohilla, iflairwebtechnologies, mukesh27, dingguodong, aristath.
Fixes #62009.
Built from https://develop.svn.wordpress.org/trunk@59497


git-svn-id: http://core.svn.wordpress.org/trunk@58883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-12-07 22:08:19 +00:00
parent c10dbc8434
commit 708282ecaf
2 changed files with 2 additions and 2 deletions

View File

@ -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'];
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59496';
$wp_version = '6.8-alpha-59497';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.