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
This commit is contained in:
Sergey Biryukov 2020-05-23 00:01:10 +00:00
parent c0bec847d1
commit f1114d4507
3 changed files with 5 additions and 5 deletions

View File

@ -221,7 +221,7 @@ $content = esc_textarea( $content );
<?php
foreach ( $plugins as $plugin_key => $a_plugin ) {
$plugin_name = $a_plugin['Name'];
if ( $plugin_key == $plugin ) {
if ( $plugin_key === $plugin ) {
$selected = " selected='selected'";
} else {
$selected = '';

View File

@ -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 .= ' <span>(' . esc_html( $file_show ) . ')</span>';
}
?>
@ -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" . '<option value="' . esc_attr( $a_stylesheet ) . '"' . $selected . '>' . $a_theme->display( 'Name' ) . '</option>';
}
?>
@ -298,7 +298,7 @@ else :
<div>
<div class="editor-notices">
<?php if ( is_child_theme() && $theme->get_stylesheet() == get_template() ) : ?>
<?php if ( is_child_theme() && $theme->get_stylesheet() === get_template() ) : ?>
<div class="notice notice-warning inline">
<p>
<?php if ( is_writeable( $file ) ) : ?>

View File

@ -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.