From 4180ca6425e8113f80991efd432a0fbe173bf29b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 1 Feb 2025 20:50:13 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@59750 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/media.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 4484d1672519e..0f988a2dac62b 100644 --- a/src/wp-admin/includes/media.php +++ b/src/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 {