From 6e26ca264836aa4d4a4621564c8a204368eaaef8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 1 Feb 2025 20:52:19 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in some legacy media functions. Follow-up to [7062], [8653], [12188]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59750 git-svn-id: http://core.svn.wordpress.org/trunk@59092 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 4484d16725..0f988a2dac 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -93,7 +93,7 @@ function the_media_upload_tabs() { foreach ( $tabs as $callback => $text ) { $class = ''; - if ( $current == $callback ) { + if ( $current === $callback ) { $class = " class='current'"; } @@ -1172,7 +1172,7 @@ function image_align_input_fields( $post, $checked = '' ) { foreach ( $alignments as $name => $label ) { $name = esc_attr( $name ); $output[] = ""; } @@ -1222,7 +1222,7 @@ function image_size_input_fields( $post, $check = '' ) { $css_id = "image-size-{$size}-{$post->ID}"; // If this size is the default but that's not available, don't select it. - if ( $size == $check ) { + if ( $size === $check ) { if ( $enabled ) { $checked = " checked='checked'"; } else { diff --git a/wp-includes/version.php b/wp-includes/version.php index ed06c7804e..8fadd406b1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59749'; +$wp_version = '6.8-alpha-59750'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.