Skip to content
Permalink
Browse files

Upgrade/Install: Escape the `%` in `width="100%"` in a `printf()` cal…

…l in `Plugin_Upgrader_Skin::after()`.

Props afragen.
Fixes #47989.

git-svn-id: https://develop.svn.wordpress.org/trunk@46072 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Sep 6, 2019
1 parent 8b17f6c commit c95616cb6317cbfe5d8d06e5899f40b729c6ba9c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wp-admin/includes/class-plugin-upgrader-skin.php
@@ -47,7 +47,7 @@ public function after() {
if ( ! empty( $this->plugin ) && ! is_wp_error( $this->result ) && $this->plugin_active ) {
// Currently used only when JS is off for a single plugin update?
printf(
'<iframe title="%s" style="border:0;overflow:hidden" width="100%" height="170" src="%s"></iframe>',
'<iframe title="%s" style="border:0;overflow:hidden" width="100%%" height="170" src="%s"></iframe>',
esc_attr__( 'Update progress' ),
wp_nonce_url( 'update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin )
);

0 comments on commit c95616c

Please sign in to comment.
You can’t perform that action at this time.