Make WordPress Core

Changeset 32974


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.

Location:
trunk/src/wp-admin
Files:
57 edited

Legend:

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

    r32642 r32974  
    118118<div class="wrap">
    119119
    120 <h2><?php echo esc_html( $title ); ?></h2>
     120<h1><?php echo esc_html( $title ); ?></h1>
    121121
    122122<?php
  • trunk/src/wp-admin/css/common.css

    r32973 r32974  
    329329}
    330330
     331.wrap > h1,
    331332h2 {
    332333    color: #23282d;
     
    565566}
    566567
     568.wrap h1,
    567569.wrap h2,
    568570.subtitle {
     
    571573}
    572574
     575.wrap h1,
    573576.wrap h2 {
    574577    font-size: 23px;
  • trunk/src/wp-admin/custom-background.php

    r32913 r32974  
    177177?>
    178178<div class="wrap" id="custom-background">
    179 <h2><?php _e( 'Custom Background' ); ?></h2>
     179<h1><?php _e( 'Custom Background' ); ?></h1>
    180180
    181181<?php if ( current_user_can( 'customize' ) ) { ?>
  • trunk/src/wp-admin/custom-header.php

    r32913 r32974  
    447447
    448448<div class="wrap">
    449 <h2><?php _e( 'Custom Header' ); ?></h2>
     449<h1><?php _e( 'Custom Header' ); ?></h1>
    450450
    451451<?php if ( current_user_can( 'customize' ) ) { ?>
     
    755755
    756756<div class="wrap">
    757 <h2><?php _e( 'Crop Header Image' ); ?></h2>
     757<h1><?php _e( 'Crop Header Image' ); ?></h1>
    758758
    759759<form method="post" action="<?php echo esc_url(add_query_arg('step', 3)); ?>">
  • trunk/src/wp-admin/edit-comments.php

    r32333 r32974  
    141141
    142142<div class="wrap">
    143 <h2><?php
     143<h1><?php
    144144if ( $post_id )
    145145    echo sprintf( __( 'Comments on &#8220;%s&#8221;' ),
     
    154154if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
    155155    echo '<span class="subtitle">' . sprintf( __( 'Search results for &#8220;%s&#8221;' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '&hellip;' ) ) . '</span>'; ?>
    156 </h2>
     156</h1>
    157157
    158158<?php
  • trunk/src/wp-admin/edit-form-advanced.php

    r32870 r32974  
    415415
    416416<div class="wrap">
    417 <h2><?php
     417<h1><?php
    418418echo esc_html( $title );
    419419if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) )
    420420    echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    421 ?></h2>
     421?></h1>
    422422<?php if ( $notice ) : ?>
    423423<div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div>
  • trunk/src/wp-admin/edit-form-comment.php

    r32945 r32974  
    1414<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
    1515<div class="wrap">
    16 <h2><?php _e('Edit Comment'); ?></h2>
     16<h1><?php _e( 'Edit Comment' ); ?></h1>
    1717
    1818<div id="poststuff">
  • trunk/src/wp-admin/edit-link-form.php

    r32116 r32974  
    7171
    7272<div class="wrap">
    73 <h2><?php echo esc_html( $title ); ?>  <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h2>
     73<h1><?php echo esc_html( $title ); ?>  <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h1>
    7474
    7575<?php if ( isset( $_GET['added'] ) ) : ?>
  • trunk/src/wp-admin/edit-tag-form.php

    r31973 r32974  
    6363
    6464<div class="wrap">
    65 <h2><?php echo $tax->labels->edit_item; ?></h2>
     65<h1><?php echo $tax->labels->edit_item; ?></h1>
    6666<div id="ajax-response"></div>
    6767<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"
  • trunk/src/wp-admin/edit-tags.php

    r32792 r32974  
    313313
    314314<div class="wrap nosubsub">
    315 <h2><?php echo esc_html( $title );
     315<h1><?php echo esc_html( $title );
    316316if ( !empty($_REQUEST['s']) )
    317317    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
    318 </h2>
     318</h1>
    319319
    320320<?php if ( $message ) : ?>
  • trunk/src/wp-admin/edit.php

    r32642 r32974  
    284284?>
    285285<div class="wrap">
    286 <h2><?php
     286<h1><?php
    287287echo esc_html( $post_type_object->labels->name );
    288288if ( current_user_can( $post_type_object->cap->create_posts ) )
     
    290290if ( ! empty( $_REQUEST['s'] ) )
    291291    printf( ' <span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() );
    292 ?></h2>
     292?></h1>
    293293
    294294<?php
  • trunk/src/wp-admin/export.php

    r32116 r32974  
    144144
    145145<div class="wrap">
    146 <h2><?php echo esc_html( $title ); ?></h2>
     146<h1><?php echo esc_html( $title ); ?></h1>
    147147
    148148<p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
  • trunk/src/wp-admin/import.php

    r32116 r32974  
    5353
    5454<div class="wrap">
    55 <h2><?php echo esc_html( $title ); ?></h2>
     55<h1><?php echo esc_html( $title ); ?></h1>
    5656<?php if ( ! empty( $_GET['invalid'] ) ) : ?>
    5757    <div class="error"><p><strong><?php _e('ERROR:')?></strong> <?php printf( __('The <strong>%s</strong> importer is invalid or is not installed.'), esc_html( $_GET['invalid'] ) ); ?></p></div>
  • trunk/src/wp-admin/includes/class-wp-upgrader-skins.php

    r32965 r32974  
    8585        $this->done_header = true;
    8686        echo '<div class="wrap">';
    87         echo '<h2>' . $this->options['title'] . '</h2>';
     87        echo '<h1>' . $this->options['title'] . '</h1>';
    8888    }
    8989
  • trunk/src/wp-admin/index.php

    r32116 r32974  
    9494
    9595<div class="wrap">
    96     <h2><?php echo esc_html( $title ); ?></h2>
     96    <h1><?php echo esc_html( $title ); ?></h1>
    9797
    9898<?php if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) :
  • trunk/src/wp-admin/js/common.js

    r32844 r32974  
    371371
    372372    // Move .notice, .updated and .error alert boxes. Don't move boxes designed to be inline.
    373     $firstHeading = $( 'div.wrap h2:first' );
     373    $firstHeading = $( '.wrap > h1:first' );
     374
     375    // Back compatibility: if there is no H1, apply to first H2.
     376    if ( ! $firstHeading.length ) {
     377        $firstHeading = $( '.wrap h2:first' );
     378    }
     379
    374380    $firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' );
    375381    $( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading );
  • trunk/src/wp-admin/js/theme.js

    r31995 r32974  
    8585
    8686    // Defines search element container
    87     searchContainer: $( '#wpbody h2:first' ),
     87    searchContainer: $( '#wpbody h1:first' ),
    8888
    8989    // Search input and view
  • trunk/src/wp-admin/link-manager.php

    r32116 r32974  
    7070
    7171<div class="wrap nosubsub">
    72 <h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
     72<h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
    7373if ( !empty($_REQUEST['s']) )
    7474    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
    75 </h2>
     75</h1>
    7676
    7777<?php
  • trunk/src/wp-admin/media-new.php

    r32116 r32974  
    6666?>
    6767<div class="wrap">
    68     <h2><?php echo esc_html( $title ); ?></h2>
     68    <h1><?php echo esc_html( $title ); ?></h1>
    6969
    7070    <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form">
  • trunk/src/wp-admin/media.php

    r32116 r32974  
    104104
    105105<div class="wrap">
    106 <h2>
     106<h1>
    107107<?php
    108108echo esc_html( $title );
     
    110110    <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a>
    111111<?php } ?>
    112 </h2>
     112</h1>
    113113
    114114<form method="post" class="media-upload-form" id="media-single-form">
  • trunk/src/wp-admin/ms-delete-site.php

    r32381 r32974  
    3333
    3434echo '<div class="wrap">';
    35 echo '<h2>' . esc_html( $title ) . '</h2>';
     35echo '<h1>' . esc_html( $title ) . '</h1>';
    3636
    3737if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) {
  • trunk/src/wp-admin/my-sites.php

    r32116 r32974  
    5757
    5858<div class="wrap">
    59 <h2><?php echo esc_html( $title ); ?></h2>
     59<h1><?php echo esc_html( $title ); ?></h1>
    6060<?php
    6161if ( empty( $blogs ) ) :
  • trunk/src/wp-admin/nav-menus.php

    r32695 r32974  
    559559?>
    560560<div class="wrap">
    561     <h2 class="nav-tab-wrapper">
     561    <h1 class="nav-tab-wrapper">
    562562        <a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' != $_GET['action'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a>
    563563        <?php if ( $num_locations && $menu_count ) : ?>
    564564            <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab<?php if ( $locations_screen ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Manage Locations' ); ?></a>
    565565        <?php endif; ?>
    566     </h2>
     566    </h1>
    567567    <?php
    568568    foreach( $messages as $message ) :
  • trunk/src/wp-admin/network.php

    r32800 r32974  
    146146?>
    147147<div class="wrap">
    148 <h2><?php echo esc_html( $title ); ?></h2>
     148<h1><?php echo esc_html( $title ); ?></h1>
    149149
    150150<?php
  • trunk/src/wp-admin/network/index.php

    r32152 r32974  
    6666
    6767<div class="wrap">
    68 <h2><?php echo esc_html( $title ); ?></h2>
     68<h1><?php echo esc_html( $title ); ?></h1>
    6969
    7070<div id="dashboard-widgets-wrap">
  • trunk/src/wp-admin/network/settings.php

    r32152 r32974  
    120120
    121121<div class="wrap">
    122     <h2><?php echo esc_html( $title ); ?></h2>
     122    <h1><?php echo esc_html( $title ); ?></h1>
    123123    <form method="post" action="settings.php" novalidate="novalidate">
    124124        <?php wp_nonce_field( 'siteoptions' ); ?>
  • trunk/src/wp-admin/network/site-info.php

    r32761 r32974  
    138138
    139139<div class="wrap">
    140 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
     140<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
    141141<h3 class="nav-tab-wrapper">
    142142<?php
  • trunk/src/wp-admin/network/site-new.php

    r32730 r32974  
    131131
    132132<div class="wrap">
    133 <h2 id="add-new-site"><?php _e('Add New Site') ?></h2>
     133<h1 id="add-new-site"><?php _e( 'Add New Site' ); ?></h1>
    134134<?php
    135135if ( ! empty( $messages ) ) {
  • trunk/src/wp-admin/network/site-settings.php

    r32152 r32974  
    8888
    8989<div class="wrap">
    90 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
     90<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
    9191<h3 class="nav-tab-wrapper">
    9292<?php
  • trunk/src/wp-admin/network/site-themes.php

    r32152 r32974  
    140140
    141141<div class="wrap">
    142 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
     142<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
    143143<h3 class="nav-tab-wrapper">
    144144<?php
  • trunk/src/wp-admin/network/site-users.php

    r32730 r32974  
    183183
    184184<div class="wrap">
    185 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
     185<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
    186186<h3 class="nav-tab-wrapper">
    187187<?php
  • trunk/src/wp-admin/network/sites.php

    r32152 r32974  
    6868        ?>
    6969            <div class="wrap">
    70                 <h2><?php _e( 'Confirm your action' ); ?></h2>
     70                <h1><?php _e( 'Confirm your action' ); ?></h1>
    7171                <form action="sites.php?action=<?php echo esc_attr( $_GET['action2'] ) ?>" method="post">
    7272                    <input type="hidden" name="action" value="<?php echo esc_attr( $_GET['action2'] ) ?>" />
     
    249249
    250250<div class="wrap">
    251 <h2><?php _e( 'Sites' ) ?>
     251<h1><?php _e( 'Sites' ); ?>
    252252
    253253<?php if ( current_user_can( 'create_sites') ) : ?>
     
    258258    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $s ) );
    259259} ?>
    260 </h2>
     260</h1>
    261261
    262262<?php echo $msg; ?>
  • 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
  • trunk/src/wp-admin/network/upgrade.php

    r32642 r32974  
    4040
    4141echo '<div class="wrap">';
    42 echo '<h2>' . __( 'Upgrade Network' ) . '</h2>';
     42echo '<h1>' . __( 'Upgrade Network' ) . '</h1>';
    4343
    4444$action = isset($_GET['action']) ? $_GET['action'] : 'show';
  • trunk/src/wp-admin/network/user-new.php

    r32774 r32974  
    7171
    7272<div class="wrap">
    73 <h2 id="add-new-user"><?php _e('Add New User') ?></h2>
     73<h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1>
    7474<?php
    7575if ( ! empty( $messages ) ) {
  • 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(); ?>
  • trunk/src/wp-admin/options-discussion.php

    r32569 r32974  
    5252
    5353<div class="wrap">
    54 <h2><?php echo esc_html( $title ); ?></h2>
     54<h1><?php echo esc_html( $title ); ?></h1>
    5555
    5656<form method="post" action="options.php">
  • trunk/src/wp-admin/options-general.php

    r32642 r32974  
    110110
    111111<div class="wrap">
    112 <h2><?php echo esc_html( $title ); ?></h2>
     112<h1><?php echo esc_html( $title ); ?></h1>
    113113
    114114<form method="post" action="options.php" novalidate="novalidate">
  • trunk/src/wp-admin/options-media.php

    r32642 r32974  
    4141
    4242<div class="wrap">
    43 <h2><?php echo esc_html( $title ); ?></h2>
     43<h1><?php echo esc_html( $title ); ?></h1>
    4444
    4545<form action="options.php" method="post">
  • trunk/src/wp-admin/options-permalink.php

    r32116 r32974  
    176176
    177177<div class="wrap">
    178 <h2><?php echo esc_html( $title ); ?></h2>
     178<h1><?php echo esc_html( $title ); ?></h1>
    179179
    180180<form name="form" action="options-permalink.php" method="post">
  • trunk/src/wp-admin/options-reading.php

    r32116 r32974  
    7575
    7676<div class="wrap">
    77 <h2><?php echo esc_html( $title ); ?></h2>
     77<h1><?php echo esc_html( $title ); ?></h1>
    7878
    7979<form method="post" action="options.php">
  • trunk/src/wp-admin/options-writing.php

    r32454 r32974  
    5151
    5252<div class="wrap">
    53 <h2><?php echo esc_html( $title ); ?></h2>
     53<h1><?php echo esc_html( $title ); ?></h1>
    5454
    5555<form method="post" action="options.php">
  • trunk/src/wp-admin/options.php

    r32455 r32974  
    227227
    228228<div class="wrap">
    229   <h2><?php esc_html_e('All Settings'); ?></h2>
     229  <h1><?php esc_html_e( 'All Settings' ); ?></h1>
    230230  <form name="form" action="options.php" method="post" id="all-options">
    231231  <?php wp_nonce_field('options-options') ?>
  • trunk/src/wp-admin/plugin-editor.php

    r32116 r32974  
    2929    ?>
    3030    <div class="wrap">
    31         <h2><?php echo esc_html( $title ); ?></h2>
     31        <h1><?php echo esc_html( $title ); ?></h1>
    3232        <div id="message" class="error"><p><?php _e( 'You do not appear to have any plugins available at this time.' ); ?></p></div>
    3333    </div>
     
    175175<?php endif; ?>
    176176<div class="wrap">
    177 <h2><?php echo esc_html( $title ); ?></h2>
     177<h1><?php echo esc_html( $title ); ?></h1>
    178178
    179179<div class="fileedit-sub">
  • trunk/src/wp-admin/plugin-install.php

    r32116 r32974  
    9595?>
    9696<div class="wrap">
    97 <h2>
     97<h1>
    9898    <?php
    9999    echo esc_html( $title );
     
    109109    }
    110110    ?>
    111 </h2>
     111</h1>
    112112
    113113<?php
  • 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
  • trunk/src/wp-admin/revision.php

    r32116 r32974  
    7575    $post_edit_link = get_edit_post_link();
    7676    $post_title     = '<a href="' . $post_edit_link . '">' . _draft_or_post_title() . '</a>';
    77     $h2             = sprintf( __( 'Compare Revisions of &#8220;%1$s&#8221;' ), $post_title );
     77    $h1             = sprintf( __( 'Compare Revisions of &#8220;%1$s&#8221;' ), $post_title );
    7878    $return_to_post = '<a href="' . $post_edit_link . '">' . __( '&larr; Return to post editor' ) . '</a>';
    7979    $title          = __( 'Revisions' );
     
    127127
    128128<div class="wrap">
    129     <h2 class="long-header"><?php echo $h2; ?></h2>
     129    <h1 class="long-header"><?php echo $h1; ?></h1>
    130130    <?php echo $return_to_post; ?>
    131131</div>
  • trunk/src/wp-admin/theme-editor.php

    r32116 r32974  
    132132?>
    133133<div class="wrap">
    134 <h2><?php echo esc_html( $title ); ?></h2>
     134<h1><?php echo esc_html( $title ); ?></h1>
    135135
    136136<div class="fileedit-sub">
  • trunk/src/wp-admin/theme-install.php

    r32835 r32974  
    103103?>
    104104<div class="wrap">
    105     <h2><?php
     105    <h1><?php
    106106    echo esc_html( $title );
    107107
     
    121121        echo ' <a href="#" class="browse-themes add-new-h2">' . _x( 'Browse', 'themes' ) . '</a>';
    122122    }
    123     ?></h2>
     123    ?></h1>
    124124
    125125    <div class="upload-theme">
  • 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'] ) ) : ?>
  • trunk/src/wp-admin/tools.php

    r32116 r32974  
    3434?>
    3535<div class="wrap">
    36 <h2><?php echo esc_html( $title ); ?></h2>
     36<h1><?php echo esc_html( $title ); ?></h1>
    3737
    3838<?php if ( current_user_can('edit_posts') ) : ?>
  • 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>
  • trunk/src/wp-admin/upload.php

    r32116 r32974  
    7272    ?>
    7373    <div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query() ?>">
    74         <h2>
     74        <h1>
    7575        <?php
    7676        echo esc_html( $title );
     
    7979        }
    8080        ?>
    81         </h2>
     81        </h1>
    8282        <div class="error hide-if-js">
    8383            <p><?php _e( 'The grid view for the Media Library requires JavaScript. <a href="upload.php?mode=list">Switch to the list view</a>.' ); ?></p>
     
    207207
    208208<div class="wrap">
    209 <h2>
     209<h1>
    210210<?php
    211211echo esc_html( $title );
     
    215215if ( ! empty( $_REQUEST['s'] ) )
    216216    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?>
    217 </h2>
     217</h1>
    218218
    219219<?php
  • trunk/src/wp-admin/user-edit.php

    r32799 r32974  
    203203
    204204<div class="wrap" id="profile-page">
    205 <h2>
     205<h1>
    206206<?php
    207207echo esc_html( $title );
     
    213213    <?php }
    214214} ?>
    215 </h2>
     215</h1>
    216216<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate"<?php
    217217    /**
  • trunk/src/wp-admin/user-new.php

    r32654 r32974  
    238238?>
    239239<div class="wrap">
    240 <h2 id="add-new-user"> <?php
     240<h1 id="add-new-user"><?php
    241241if ( current_user_can( 'create_users' ) ) {
    242242    echo _x( 'Add New User', 'user' );
     
    244244    echo _x( 'Add Existing User', 'user' );
    245245} ?>
    246 </h2>
     246</h1>
    247247
    248248<?php if ( isset($errors) && is_wp_error( $errors ) ) : ?>
  • trunk/src/wp-admin/users.php

    r32116 r32974  
    215215
    216216<div class="wrap">
    217 <h2><?php _e('Delete Users'); ?></h2>
     217<h1><?php _e( 'Delete Users' ); ?></h1>
    218218<?php if ( isset( $_REQUEST['error'] ) ) : ?>
    219219    <div class="error">
     
    337337
    338338<div class="wrap">
    339 <h2><?php _e('Remove Users from Site'); ?></h2>
     339<h1><?php _e( 'Remove Users from Site' ); ?></h1>
    340340<p><?php _e('You have specified these users for removal:'); ?></p>
    341341<ul>
     
    444444
    445445<div class="wrap">
    446 <h2>
     446<h1>
    447447<?php
    448448echo esc_html( $title );
     
    455455if ( $usersearch )
    456456    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $usersearch ) ); ?>
    457 </h2>
     457</h1>
    458458
    459459<?php $wp_list_table->views(); ?>
  • trunk/src/wp-admin/widgets.php

    r32654 r32974  
    236236    require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    237237    <div class="wrap">
    238     <h2><?php echo esc_html( $title ); ?></h2>
     238    <h1><?php echo esc_html( $title ); ?></h1>
    239239    <div class="editwidget"<?php echo $width; ?>>
    240240    <h3><?php printf( __( 'Widget %s' ), $name ); ?></h3>
     
    316316
    317317<div class="wrap">
    318 <h2>
     318<h1>
    319319<?php
    320320    echo esc_html( $title );
     
    333333    }
    334334?>
    335 </h2>
     335</h1>
    336336
    337337<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
Note: See TracChangeset for help on using the changeset viewer.