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/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
Note: See TracChangeset for help on using the changeset viewer.