mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 09:34:41 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@32974 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -235,7 +235,7 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
<div class="wrap">
|
||||
<h2><?php echo esc_html( $title ); ?></h2>
|
||||
<h1><?php echo esc_html( $title ); ?></h1>
|
||||
<div class="editwidget"<?php echo $width; ?>>
|
||||
<h3><?php printf( __( 'Widget %s' ), $name ); ?></h3>
|
||||
|
||||
@@ -315,7 +315,7 @@ $errors = array(
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<h2>
|
||||
<h1>
|
||||
<?php
|
||||
echo esc_html( $title );
|
||||
if ( current_user_can( 'customize' ) ) {
|
||||
@@ -332,7 +332,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
);
|
||||
}
|
||||
?>
|
||||
</h2>
|
||||
</h1>
|
||||
|
||||
<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
|
||||
<div id="message" class="updated notice is-dismissible"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
||||
|
||||
Reference in New Issue
Block a user