From f1114d4507cddfc268a2c43030e56be676626277 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 23 May 2020 00:01:10 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issues in `wp-admin/plugin-editor.php` and `wp-admin/theme-editor.php`. See #49542. Built from https://develop.svn.wordpress.org/trunk@47845 git-svn-id: http://core.svn.wordpress.org/trunk@47621 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/plugin-editor.php | 2 +- wp-admin/theme-editor.php | 6 +++--- wp-includes/version.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index d85d5dd702..c0fcbb7f34 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -221,7 +221,7 @@ $content = esc_textarea( $content ); $a_plugin ) { $plugin_name = $a_plugin['Name']; - if ( $plugin_key == $plugin ) { + if ( $plugin_key === $plugin ) { $selected = " selected='selected'"; } else { $selected = ''; diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 432e36f7db..21d322ea08 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -177,7 +177,7 @@ if ( ! empty( $posted_content ) ) { $file_description = get_file_description( $relative_file ); $file_show = array_search( $file, array_filter( $allowed_files ), true ); $description = esc_html( $file_description ); -if ( $file_description != $file_show ) { +if ( $file_description !== $file_show ) { $description .= ' (' . esc_html( $file_show ) . ')'; } ?> @@ -230,7 +230,7 @@ if ( $file_description != $file_show ) { continue; } - $selected = $a_stylesheet == $stylesheet ? ' selected="selected"' : ''; + $selected = ( $a_stylesheet === $stylesheet ) ? ' selected="selected"' : ''; echo "\n\t" . ''; } ?> @@ -298,7 +298,7 @@ else :
- get_stylesheet() == get_template() ) : ?> + get_stylesheet() === get_template() ) : ?>

diff --git a/wp-includes/version.php b/wp-includes/version.php index bc21963b8f..12a04e6ece 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47844'; +$wp_version = '5.5-alpha-47845'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.