Make WordPress Core

Ticket #34763: 34763.2.patch

File 34763.2.patch, 2.3 KB (added by afercia, 9 years ago)
  • src/wp-admin/includes/class-wp-upgrader-skins.php

     
    224224        public function after() {
    225225                $this->plugin = $this->upgrader->plugin_info();
    226226                if ( !empty($this->plugin) && !is_wp_error($this->result) && $this->plugin_active ){
    227                         echo '<iframe style="border:0;overflow:hidden" width="100%" height="170px" src="' . wp_nonce_url('update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin) .'"></iframe>';
     227                        // Currently used only when JS is off for a single plugin update?
     228                        echo '<iframe title="' . esc_attr( 'Update progress' ) . '" style="border:0;overflow:hidden" width="100%" height="170" src="' . wp_nonce_url( 'update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ) . '"></iframe>';
    228229                }
    229230
    230231                $this->decrement_update_count( 'plugin' );
  • src/wp-admin/update-core.php

     
    644644        require_once(ABSPATH . 'wp-admin/admin-header.php');
    645645        echo '<div class="wrap">';
    646646        echo '<h1>' . __( 'Update Plugins' ) . '</h1>';
    647         echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>';
     647        echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0" title="' . esc_attr( 'Update progress' ) . '"></iframe>';
    648648        echo '</div>';
    649649        include(ABSPATH . 'wp-admin/admin-footer.php');
    650650
     
    673673        ?>
    674674        <div class="wrap">
    675675                <h1><?php _e( 'Update Themes' ); ?></h1>
    676                 <iframe src="<?php echo $url ?>" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>
     676                <iframe src="<?php echo $url ?>" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0" title="<?php esc_attr_e( 'Update progress' ); ?>"></iframe>
    677677        </div>
    678678        <?php
    679679        include(ABSPATH . 'wp-admin/admin-footer.php');