From 708282ecafecdb0e226b587fc38f7c3956ac8409 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 7 Dec 2024 22:08:19 +0000 Subject: [PATCH] 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 --- wp-admin/includes/media.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index df63128a16..82187fd62e 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -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']; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 917192e5e2..945f13a249 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.