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/users.php

    r32654 r32974  
    2727    }
    2828    ?>
    29     <h2><?php esc_html_e( 'Users' ); ?></h2>
     29    <h1><?php esc_html_e( 'Users' ); ?></h1>
    3030
    3131    <?php if ( 1 == count( $users ) ) : ?>
     
    310310    ?>
    311311<div class="wrap">
    312     <h2><?php esc_html_e( 'Users' );
     312    <h1><?php esc_html_e( 'Users' );
    313313    if ( current_user_can( 'create_users') ) : ?>
    314314        <a href="<?php echo network_admin_url('user-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
     
    318318    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $usersearch ) );
    319319    ?>
    320     </h2>
     320    </h1>
    321321
    322322    <?php $wp_list_table->views(); ?>
Note: See TracChangeset for help on using the changeset viewer.