Make WordPress Core


Ignore:
Timestamp:
05/07/2021 01:48:12 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r50783 r50825  
    881881            case 'newer_installed':
    882882                /* translators: %s: Plugin version. */
    883                 echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed' ), $status['version'] ) . '</a>';
     883                echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed' ), esc_html( $status['version'] ) ) . '</a>';
    884884                break;
    885885            case 'latest_installed':
Note: See TracChangeset for help on using the changeset viewer.