Make WordPress Core


Ignore:
Timestamp:
10/27/2016 08:38:09 PM (8 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.php

    r38958 r38983  
    304304?>
    305305<div class="wrap">
    306 <h1><?php
     306<h1 class="wp-heading-inline"><?php
    307307echo esc_html( $post_type_object->labels->name );
    308 if ( current_user_can( $post_type_object->cap->create_posts ) )
     308?></h1>
     309
     310<?php
     311if ( current_user_can( $post_type_object->cap->create_posts ) ) {
    309312    echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
     313}
    310314
    311315if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
     
    313317    printf( ' <span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', get_search_query() );
    314318}
    315 ?></h1>
     319?>
     320
     321<hr class="wp-header-end">
    316322
    317323<?php
Note: See TracChangeset for help on using the changeset viewer.