WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/27/2015 03:40:27 PM (6 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/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.