Make WordPress Core


Ignore:
Timestamp:
06/27/2015 03:40:27 PM (10 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/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>
Note: See TracChangeset for help on using the changeset viewer.