WordPress.org

Make WordPress Core

Ticket #31650: 31650.2.patch

File 31650.2.patch, 38.1 KB (added by afercia, 5 years ago)
  • src/wp-admin/comment.php

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

     
    328328        margin: .67em 0;
    329329}
    330330
    331 h2 {
     331.wrap > h1, h2 {
    332332        color: #23282d;
    333333        font-size: 1.5em;
    334334        margin: .83em 0;
     
    564564        color: #00a0d2;
    565565}
    566566
     567.wrap h1,
    567568.wrap h2,
    568569.subtitle {
    569570        font-weight: normal;
     
    570571        margin: 0;
    571572}
    572573
     574.wrap h1,
    573575.wrap h2 {
    574576        font-size: 23px;
    575577        font-weight: 400;
  • src/wp-admin/custom-background.php

     
    176176        public function admin_page() {
    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' ) ) { ?>
    182182<div class="notice notice-info hide-if-no-customize">
  • src/wp-admin/custom-header.php

     
    446446?>
    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' ) ) { ?>
    452452<div class="notice notice-info hide-if-no-customize">
     
    754754                ?>
    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)); ?>">
    760760        <p class="hide-if-no-js"><?php _e('Choose the part of the image you want to use as your header.'); ?></p>
  • src/wp-admin/edit-comments.php

     
    140140?>
    141141
    142142<div class="wrap">
    143 <h2><?php
     143<h1><?php
    144144if ( $post_id )
    145145        echo sprintf( __( 'Comments on &#8220;%s&#8221;' ),
    146146                sprintf( '<a href="%s">%s</a>',
     
    153153
    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
    159159if ( isset( $_REQUEST['error'] ) ) {
  • src/wp-admin/edit-form-advanced.php

     
    407407?>
    408408
    409409<div class="wrap">
    410 <h2><?php
     410<h1><?php
    411411echo esc_html( $title );
    412412if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) )
    413413        echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    414 ?></h2>
     414?></h1>
    415415<?php if ( $notice ) : ?>
    416416<div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div>
    417417<?php endif; ?>
  • src/wp-admin/edit-form-comment.php

     
    1313<form name="post" action="comment.php" method="post" id="post">
    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">
    1919<input type="hidden" name="action" value="editedcomment" />
  • src/wp-admin/edit-link-form.php

     
    7070?>
    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'] ) ) : ?>
    7676<div id="message" class="updated notice is-dismissible"><p><?php _e('Link added.'); ?></p></div>
  • src/wp-admin/edit-tag-form.php

     
    6262do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
    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"
    6868<?php
  • src/wp-admin/edit-tags.php

     
    305305?>
    306306
    307307<div class="wrap nosubsub">
    308 <h2><?php echo esc_html( $title );
     308<h1><?php echo esc_html( $title );
    309309if ( !empty($_REQUEST['s']) )
    310310        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
    311 </h2>
     311</h1>
    312312
    313313<?php if ( $message ) : ?>
    314314<div id="message" class="<?php echo $class; ?> notice is-dismissible"><p><?php echo $message; ?></p></div>
  • src/wp-admin/edit.php

     
    283283require_once( ABSPATH . 'wp-admin/admin-header.php' );
    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 ) )
    289289        echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    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
    295295// If we have a bulk message to issue:
  • src/wp-admin/export.php

     
    143143?>
    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>
    149149<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p>
  • src/wp-admin/import.php

     
    5252?>
    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>
    5858<?php endif; ?>
  • src/wp-admin/includes/class-wp-upgrader-skins.php

     
    8484                }
    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
    9090        /**
  • src/wp-admin/index.php

     
    9393?>
    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' ) ) :
    9999        $classes = 'welcome-panel';
  • src/wp-admin/js/common.js

     
    172172
    173173$(document).ready( function() {
    174174        var checks, first, last, checked, sliced, mobileEvent, transitionTimeout, focusedRowActions, $firstHeading,
     175                $firstH1 = $( 'div.wrap > h1' ),
    175176                lastClicked = false,
    176177                pageInput = $('input.current-page'),
    177178                currentPage = pageInput.val(),
     
    369370        }
    370371
    371372        // Move .notice, .updated and .error alert boxes. Don't move boxes designed to be inline.
    372         $firstHeading = $( 'div.wrap h2:first' );
     373        // Back compatibility: if first descendant is not H1, apply to first H2.
     374        if ( $firstH1.length == 1 ) {
     375                $firstHeading = $( 'div.wrap h1:first' );
     376        } else {
     377                $firstHeading = $( 'div.wrap h2:first' );
     378        }
    373379        $firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' );
    374380        $( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading );
    375381
  • src/wp-admin/js/theme.js

     
    8484        },
    8585
    8686        // Defines search element container
    87         searchContainer: $( '#wpbody h2:first' ),
     87        searchContainer: $( '#wpbody h1:first' ),
    8888
    8989        // Search input and view
    9090        // for current theme collection
  • src/wp-admin/link-manager.php

     
    6969?>
    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
    7878if ( isset($_REQUEST['deleted']) ) {
  • src/wp-admin/media-new.php

     
    6565        $form_class .= ' html-uploader';
    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">
    7171
  • src/wp-admin/media.php

     
    103103?>
    104104
    105105<div class="wrap">
    106 <h2>
     106<h1>
    107107<?php
    108108echo esc_html( $title );
    109109if ( current_user_can( 'upload_files' ) ) { ?>
    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">
    115115<p class="submit" style="padding-bottom: 0;">
  • src/wp-admin/ms-delete-site.php

     
    3232require_once( ABSPATH . 'wp-admin/admin-header.php' );
    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' ) {
    3838        check_admin_referer( 'delete-blog' );
  • src/wp-admin/my-sites.php

     
    5656<?php } ?>
    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 ) ) :
    6262        echo '<p>';
  • src/wp-admin/nav-menus.php

     
    558558require_once( ABSPATH . 'wp-admin/admin-header.php' );
    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 ) :
    569569                echo $message . "\n";
  • src/wp-admin/network.php

     
    145145include( ABSPATH . 'wp-admin/admin-header.php' );
    146146?>
    147147<div class="wrap">
    148 <h2><?php echo esc_html( $title ); ?></h2>
     148<h1><?php echo esc_html( $title ); ?></h1>
    149149
    150150<?php
    151151/**
  • src/wp-admin/network/index.php

     
    6565?>
    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">
    7171
  • src/wp-admin/network/settings.php

     
    119119?>
    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' ); ?>
    125125                <h3><?php _e( 'Operational Settings' ); ?></h3>
  • src/wp-admin/network/site-info.php

     
    9999?>
    100100
    101101<div class="wrap">
    102 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
     102<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
    103103<h3 class="nav-tab-wrapper">
    104104<?php
    105105$tabs = array(
  • src/wp-admin/network/site-new.php

     
    130130?>
    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 ) ) {
    136136        foreach ( $messages as $msg )
  • src/wp-admin/network/site-settings.php

     
    8787?>
    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
    9393$tabs = array(
  • src/wp-admin/network/site-themes.php

     
    139139require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    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
    145145$tabs = array(
  • src/wp-admin/network/site-users.php

     
    182182
    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
    188188$tabs = array(
  • src/wp-admin/network/sites.php

     
    6767                require_once( ABSPATH . 'wp-admin/admin-header.php' );
    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'] ) ?>" />
    7373                                        <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
     
    248248?>
    249249
    250250<div class="wrap">
    251 <h2><?php _e( 'Sites' ) ?>
     251<h1><?php _e( 'Sites' ) ?>
    252252
    253253<?php if ( current_user_can( 'create_sites') ) : ?>
    254254        <a href="<?php echo network_admin_url('site-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
     
    257257<?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) {
    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; ?>
    263263
  • src/wp-admin/network/themes.php

     
    8686                        require_once(ABSPATH . 'wp-admin/admin-header.php');
    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) ));
    9292                        $url = wp_nonce_url($url, 'bulk-update-themes');
     
    150150                                ?>
    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>
    160160                                <?php endif; ?>
     
    261261?>
    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
    270270if ( isset( $_GET['enabled'] ) ) {
  • src/wp-admin/network/upgrade.php

     
    3939        wp_die( __( 'You do not have permission to access this page.' ), 403 );
    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';
    4545
  • src/wp-admin/network/user-new.php

     
    7070require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    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 ) ) {
    7676        foreach ( $messages as $msg )
  • src/wp-admin/network/users.php

     
    2626                return false;
    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 ) ) : ?>
    3232                <p><?php _e( 'You have chosen to delete the user from all networks and sites.' ); ?></p>
     
    309309}
    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
    315315        endif;
     
    317317        if ( !empty( $usersearch ) )
    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(); ?>
    323323
  • src/wp-admin/options-discussion.php

     
    5151?>
    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">
    5757<?php settings_fields('discussion'); ?>
  • src/wp-admin/options-general.php

     
    109109?>
    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">
    115115<?php settings_fields('general'); ?>
  • src/wp-admin/options-media.php

     
    4040?>
    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">
    4646<?php settings_fields('media'); ?>
  • src/wp-admin/options-permalink.php

     
    175175<?php endif; ?>
    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">
    181181<?php wp_nonce_field('update-permalink') ?>
  • src/wp-admin/options-reading.php

     
    7474?>
    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">
    8080<?php
  • src/wp-admin/options-writing.php

     
    5050?>
    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">
    5656<?php settings_fields('writing'); ?>
  • src/wp-admin/options.php

     
    226226include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    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') ?>
    232232  <input type="hidden" name="action" value="update" />
  • src/wp-admin/plugin-editor.php

     
    2828        include( ABSPATH . 'wp-admin/admin-header.php' );
    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>
    3434        <?php
     
    174174</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">
    180180<div class="alignleft">
  • src/wp-admin/plugin-install.php

     
    9494include(ABSPATH . 'wp-admin/admin-header.php');
    9595?>
    9696<div class="wrap">
    97 <h2>
     97<h1>
    9898        <?php
    9999        echo esc_html( $title );
    100100        if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) {
     
    108108                echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text . '</a>';
    109109        }
    110110        ?>
    111 </h2>
     111</h1>
    112112
    113113<?php
    114114if ( $tab !== 'upload' ) {
  • src/wp-admin/plugins.php

     
    122122                        require_once(ABSPATH . 'wp-admin/admin-header.php');
    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) ));
    128128                        $url = wp_nonce_url($url, 'bulk-update-plugins');
     
    288288                                        $plugins_to_delete = count( $plugin_info );
    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>
    294294                                        <?php endif; ?>
    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>
    300300                                        <?php endif; ?>
     
    446446<?php endif; ?>
    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>
    452452<?php }
    453453if ( $s )
    454454        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
    455 </h2>
     455</h1>
    456456
    457457<?php
    458458/**
  • src/wp-admin/revision.php

     
    7474
    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' );
    8080
     
    126126?>
    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>
    132132<?php
  • src/wp-admin/theme-editor.php

     
    131131        $description .= ' <span>(' . $file_show . ')</span>';
    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">
    137137<div class="alignleft">
  • src/wp-admin/theme-install.php

     
    102102
    103103?>
    104104<div class="wrap">
    105         <h2><?php
     105        <h1><?php
    106106        echo esc_html( $title );
    107107
    108108        /**
     
    120120                echo ' <a href="#" class="upload add-new-h2">' . __( 'Upload Theme' ) . '</a>';
    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">
    126126        <?php install_themes_upload(); ?>
  • src/wp-admin/themes.php

     
    124124?>
    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'] ) ) : ?>
    135135<div id="message1" class="updated notice is-dismissible"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
  • src/wp-admin/tools.php

     
    3333
    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') ) : ?>
    3939<div class="card pressthis">
  • src/wp-admin/update-core.php

     
    415415
    416416?>
    417417        <div class="wrap">
    418         <h2><?php _e('Update WordPress'); ?></h2>
     418        <h1><?php _e('Update WordPress'); ?></h1>
    419419<?php
    420420
    421421        if ( false === ( $credentials = request_filesystem_credentials( $url, '', false, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership ) ) ) {
     
    542542        require_once(ABSPATH . 'wp-admin/admin-header.php');
    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 ) {
    548548                echo '<div class="error"><p>';
     
    624624
    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>' . esc_html__('Update Plugins') . '</h1>';
    628628        echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>';
    629629        echo '</div>';
    630630        include(ABSPATH . 'wp-admin/admin-footer.php');
     
    653653        require_once(ABSPATH . 'wp-admin/admin-header.php');
    654654        ?>
    655655        <div class="wrap">
    656                 <h2><?php echo esc_html__('Update Themes') ?></h2>
     656                <h1><?php echo esc_html__('Update Themes') ?></h1>
    657657                <iframe src="<?php echo $url ?>" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>
    658658        </div>
    659659        <?php
  • src/wp-admin/upload.php

     
    7171        require_once( ABSPATH . 'wp-admin/admin-header.php' );
    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 );
    7777                if ( current_user_can( 'upload_files' ) ) { ?>
     
    7878                        <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
    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>
    8484                </div>
     
    206206?>
    207207
    208208<div class="wrap">
    209 <h2>
     209<h1>
    210210<?php
    211211echo esc_html( $title );
    212212if ( current_user_can( 'upload_files' ) ) { ?>
     
    214214}
    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
    220220$message = '';
  • src/wp-admin/user-edit.php

     
    202202<?php endif; ?>
    203203
    204204<div class="wrap" id="profile-page">
    205 <h2>
     205<h1>
    206206<?php
    207207echo esc_html( $title );
    208208if ( ! IS_PROFILE_PAGE ) {
     
    212212                <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
    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        /**
    218218         * Fires inside the your-profile form tag on the user editing screen.
  • src/wp-admin/user-new.php

     
    237237}
    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' );
    243243} elseif ( current_user_can( 'promote_users' ) ) {
    244244        echo _x( 'Add Existing User', 'user' );
    245245} ?>
    246 </h2>
     246</h1>
    247247
    248248<?php if ( isset($errors) && is_wp_error( $errors ) ) : ?>
    249249        <div class="error">
  • src/wp-admin/users.php

     
    214214<?php echo $referer; ?>
    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">
    220220                <p><strong><?php _e( 'ERROR:' ); ?></strong> <?php _e( 'Please select an option.' ); ?></p>
     
    336336<?php echo $referer; ?>
    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>
    342342<?php
     
    443443} ?>
    444444
    445445<div class="wrap">
    446 <h2>
     446<h1>
    447447<?php
    448448echo esc_html( $title );
    449449if ( current_user_can( 'create_users' ) ) { ?>
     
    454454
    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(); ?>
    460460
  • src/wp-admin/widgets.php

     
    235235
    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>
    241241
     
    315315require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    316316
    317317<div class="wrap">
    318 <h2>
     318<h1>
    319319<?php
    320320        echo esc_html( $title );
    321321        if ( current_user_can( 'customize' ) ) {
     
    332332                );
    333333        }
    334334?>
    335 </h2>
     335</h1>
    336336
    337337<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
    338338<div id="message" class="updated notice is-dismissible"><p><?php echo $messages[$_GET['message']]; ?></p></div>