Make WordPress Core


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

    r32116 r32974  
    8787
    8888            echo '<div class="wrap">';
    89             echo '<h2>' . esc_html( $title ) . '</h2>';
     89            echo '<h1>' . esc_html( $title ) . '</h1>';
    9090
    9191            $url = self_admin_url('update.php?action=update-selected-themes&amp;themes=' . urlencode( join(',', $themes) ));
     
    151151            <div class="wrap">
    152152                <?php if ( 1 == $themes_to_delete ) : ?>
    153                     <h2><?php _e( 'Delete Theme' ); ?></h2>
     153                    <h1><?php _e( 'Delete Theme' ); ?></h1>
    154154                    <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This theme may be active on other sites in the network.' ); ?></p></div>
    155155                    <p><?php _e( 'You are about to remove the following theme:' ); ?></p>
    156156                <?php else : ?>
    157                     <h2><?php _e( 'Delete Themes' ); ?></h2>
     157                    <h1><?php _e( 'Delete Themes' ); ?></h1>
    158158                    <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These themes may be active on other sites in the network.' ); ?></p></div>
    159159                    <p><?php _e( 'You are about to remove the following themes:' ); ?></p>
     
    262262
    263263<div class="wrap">
    264 <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
     264<h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
    265265if ( $s )
    266266    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
    267 </h2>
     267</h1>
    268268
    269269<?php
Note: See TracChangeset for help on using the changeset viewer.