diff --git a/src/wp-admin/plugin-editor.php b/src/wp-admin/plugin-editor.php index d85d5dd702..c0fcbb7f34 100644 --- a/src/wp-admin/plugin-editor.php +++ b/src/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/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php index 432e36f7db..21d322ea08 100644 --- a/src/wp-admin/theme-editor.php +++ b/src/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 :