Make WordPress Core


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

    r32654 r32974  
    123123
    124124            echo '<div class="wrap">';
    125             echo '<h2>' . esc_html( $title ) . '</h2>';
     125            echo '<h1>' . esc_html( $title ) . '</h1>';
    126126
    127127            $url = self_admin_url('update.php?action=update-selected&amp;plugins=' . urlencode( join(',', $plugins) ));
     
    289289                ?>
    290290                <?php if ( 1 == $plugins_to_delete ) : ?>
    291                     <h2><?php _e( 'Delete Plugin' ); ?></h2>
     291                    <h1><?php _e( 'Delete Plugin' ); ?></h1>
    292292                    <?php if ( $have_non_network_plugins && is_network_admin() ) : ?>
    293293                        <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This plugin may be active on other sites in the network.' ); ?></p></div>
     
    295295                    <p><?php _e( 'You are about to remove the following plugin:' ); ?></p>
    296296                <?php else: ?>
    297                     <h2><?php _e( 'Delete Plugins' ); ?></h2>
     297                    <h1><?php _e( 'Delete Plugins' ); ?></h1>
    298298                    <?php if ( $have_non_network_plugins && is_network_admin() ) : ?>
    299299                        <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These plugins may be active on other sites in the network.' ); ?></p></div>
     
    447447
    448448<div class="wrap">
    449 <h2><?php echo esc_html( $title );
     449<h1><?php echo esc_html( $title );
    450450if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
    451451 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
     
    453453if ( $s )
    454454    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
    455 </h2>
     455</h1>
    456456
    457457<?php
Note: See TracChangeset for help on using the changeset viewer.