mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@50825 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -880,7 +880,7 @@ function install_plugin_information() {
|
||||
break;
|
||||
case 'newer_installed':
|
||||
/* translators: %s: Plugin version. */
|
||||
echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed' ), $status['version'] ) . '</a>';
|
||||
echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed' ), esc_html( $status['version'] ) ) . '</a>';
|
||||
break;
|
||||
case 'latest_installed':
|
||||
echo '<a class="button button-primary right disabled">' . __( 'Latest Version Installed' ) . '</a>';
|
||||
|
||||
Reference in New Issue
Block a user