WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/27/2015 03:40:27 PM (7 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/themes.php

    r32332 r32974  
    125125
    126126<div class="wrap">
    127     <h2><?php esc_html_e( 'Themes' ); ?>
     127    <h1><?php esc_html_e( 'Themes' ); ?>
    128128        <span class="title-count theme-count"><?php echo count( $themes ); ?></span>
    129129    <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    130130        <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js add-new-h2"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
    131131    <?php endif; ?>
    132     </h2>
     132    </h1>
    133133<?php
    134134if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.