diff --git a/wp-admin/includes/class-plugin-installer-skin.php b/wp-admin/includes/class-plugin-installer-skin.php
index af95f038e4..6a5cec123d 100644
--- a/wp-admin/includes/class-plugin-installer-skin.php
+++ b/wp-admin/includes/class-plugin-installer-skin.php
@@ -217,17 +217,17 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
$is_same_plugin = true; // Let's consider only these rows.
foreach ( $rows as $field => $label ) {
- $old_value = ! empty( $current_plugin_data[ $field ] ) ? $current_plugin_data[ $field ] : '-';
- $new_value = ! empty( $this->upgrader->new_plugin_data[ $field ] ) ? $this->upgrader->new_plugin_data[ $field ] : '-';
+ $old_value = ! empty( $current_plugin_data[ $field ] ) ? (string) $current_plugin_data[ $field ] : '-';
+ $new_value = ! empty( $this->upgrader->new_plugin_data[ $field ] ) ? (string) $this->upgrader->new_plugin_data[ $field ] : '-';
$is_same_plugin = $is_same_plugin && ( $old_value === $new_value );
$diff_field = ( 'Version' !== $field && $new_value !== $old_value );
$diff_version = ( 'Version' === $field && $this->is_downgrading );
- $table .= '
' . $label . ' | ' . esc_html( $old_value ) . ' | ';
+ $table .= '
' . $label . ' | ' . wp_strip_all_tags( $old_value ) . ' | ';
$table .= ( $diff_field || $diff_version ) ? '' : ' | ';
- $table .= esc_html( $new_value ) . ' |
';
+ $table .= wp_strip_all_tags( $new_value ) . '';
}
$table .= '';
diff --git a/wp-admin/includes/class-theme-installer-skin.php b/wp-admin/includes/class-theme-installer-skin.php
index ecbd6a7408..f091029eed 100644
--- a/wp-admin/includes/class-theme-installer-skin.php
+++ b/wp-admin/includes/class-theme-installer-skin.php
@@ -241,9 +241,9 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
foreach ( $rows as $field => $label ) {
$old_value = $current_theme_data->display( $field, false );
- $old_value = $old_value ? $old_value : '-';
+ $old_value = $old_value ? (string) $old_value : '-';
- $new_value = ! empty( $this->upgrader->new_theme_data[ $field ] ) ? $this->upgrader->new_theme_data[ $field ] : '-';
+ $new_value = ! empty( $this->upgrader->new_theme_data[ $field ] ) ? (string) $this->upgrader->new_theme_data[ $field ] : '-';
if ( $old_value === $new_value && '-' === $new_value && 'Template' === $field ) {
continue;
@@ -260,9 +260,9 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$new_value .= ' ' . __( '(not found)' );
}
- $table .= '' . $label . ' | ' . esc_html( $old_value ) . ' | ';
+ $table .= '
' . $label . ' | ' . wp_strip_all_tags( $old_value ) . ' | ';
$table .= ( $diff_field || $diff_version || $invalid_parent ) ? '' : ' | ';
- $table .= esc_html( $new_value ) . ' |
';
+ $table .= wp_strip_all_tags( $new_value ) . '';
}
$table .= '';
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 6db4c9f2b5..b4da099b64 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.5-beta1-48452';
+$wp_version = '5.5-beta1-48453';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.