Make WordPress Core


Ignore:
Timestamp:
06/27/2015 03:40:27 PM (10 years ago)
Author:
obenland
Message:

Proper heading for admin screens.

First step towards restoring a good heading structure in wp-admin.
The previous <h1> contained the site title and a link to the front page and was removed with the toolbar refactoring in 3.2.

Props joedolson, afercia.
Fixes #31650.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r32672 r32974  
    416416?>
    417417    <div class="wrap">
    418     <h2><?php _e('Update WordPress'); ?></h2>
     418    <h1><?php _e( 'Update WordPress' ); ?></h1>
    419419<?php
    420420
     
    543543    ?>
    544544    <div class="wrap">
    545     <h2><?php _e('WordPress Updates'); ?></h2>
     545    <h1><?php _e( 'WordPress Updates' ); ?></h1>
    546546    <?php
    547547    if ( $upgrade_error ) {
     
    625625    require_once(ABSPATH . 'wp-admin/admin-header.php');
    626626    echo '<div class="wrap">';
    627     echo '<h2>' . esc_html__('Update Plugins') . '</h2>';
     627    echo '<h1>' . __( 'Update Plugins' ) . '</h1>';
    628628    echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>';
    629629    echo '</div>';
     
    654654    ?>
    655655    <div class="wrap">
    656         <h2><?php echo esc_html__('Update Themes') ?></h2>
     656        <h1><?php _e( 'Update Themes' ); ?></h1>
    657657        <iframe src="<?php echo $url ?>" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>
    658658    </div>
Note: See TracChangeset for help on using the changeset viewer.