WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/27/2016 08:38:09 PM (3 years ago)
Author:
afercia
Message:

Accessibility: Remove inappropriate content from the Posts and Edit screens headings.

Props grahamarmfield, SergeyBiryukov, trishasalas, valendesigns, rianrietveld, afercia.

See #26601.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r38951 r38983  
    475475
    476476<div class="wrap">
    477 <h1><?php
     477<h1 class="wp-heading-inline"><?php
    478478echo esc_html( $title );
    479 if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) )
     479?></h1>
     480
     481<?php
     482if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) {
    480483    echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    481 ?></h1>
     484}
     485?>
     486
     487<hr class="wp-header-end">
     488
    482489<?php if ( $notice ) : ?>
    483490<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.