From 0082070074a564798169531f02b469f9fa1e806b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 7 May 2021 13:49:58 +0000 Subject: [PATCH] Plugins: Escape the currently installed version number on Add Plugins screen. The number is displayed in the plugin details modal if a newer version is already installed. Props m0ze, bmcculley, ayeshrajans. Fixes #53020. Built from https://develop.svn.wordpress.org/trunk@50825 git-svn-id: http://core.svn.wordpress.org/trunk@50434 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin-install.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index f7b65197bc..6aaf71b9ab 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -880,7 +880,7 @@ function install_plugin_information() { break; case 'newer_installed': /* translators: %s: Plugin version. */ - echo '' . sprintf( __( 'Newer Version (%s) Installed' ), $status['version'] ) . ''; + echo '' . sprintf( __( 'Newer Version (%s) Installed' ), esc_html( $status['version'] ) ) . ''; break; case 'latest_installed': echo '' . __( 'Latest Version Installed' ) . ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 89b28fce7d..a66e4dbfae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50824'; +$wp_version = '5.8-alpha-50825'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.