Make WordPress Core


Ignore:
Timestamp:
12/10/2015 05:20:18 PM (9 years ago)
Author:
afercia
Message:

Accessibility: the iframes used for the update progress in the Updates screen need title attributes to describe their content.

Fixes #34763.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader-skins.php

    r35219 r35854  
    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
Note: See TracChangeset for help on using the changeset viewer.