WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/10/2015 05:20:18 PM (5 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/update-core.php

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