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/edit-form-advanced.php

    r32870 r32974  
    415415
    416416<div class="wrap">
    417 <h2><?php
     417<h1><?php
    418418echo esc_html( $title );
    419419if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) )
    420420    echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    421 ?></h2>
     421?></h1>
    422422<?php if ( $notice ) : ?>
    423423<div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div>
Note: See TracChangeset for help on using the changeset viewer.