WordPress.org

Make WordPress Core

Changeset 39541


Ignore:
Timestamp:
12/07/2016 10:17:23 PM (18 months ago)
Author:
afercia
Message:

Accessibility: Remove inappropriate content from the Widgets screen heading.

See #26601.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/widgets.php

    r38723 r39541  
    345345
    346346<div class="wrap">
    347 <h1>
    348 <?php
    349     echo esc_html( $title );
    350     if ( current_user_can( 'customize' ) ) {
    351         printf(
    352             ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
    353             esc_url( add_query_arg(
    354                 array(
    355                     array( 'autofocus' => array( 'panel' => 'widgets' ) ),
    356                     'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )
    357                 ),
    358                 admin_url( 'customize.php' )
    359             ) ),
    360             __( 'Manage with Live Preview' )
    361         );
    362     }
     347<h1 class="wp-heading-inline"><?php
     348echo esc_html( $title );
     349?></h1>
     350
     351<?php
     352if ( current_user_can( 'customize' ) ) {
     353    printf(
     354        ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
     355        esc_url( add_query_arg(
     356            array(
     357                array( 'autofocus' => array( 'panel' => 'widgets' ) ),
     358                'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )
     359            ),
     360            admin_url( 'customize.php' )
     361        ) ),
     362        __( 'Manage with Live Preview' )
     363    );
     364}
    363365?>
    364 </h1>
     366
     367<hr class="wp-header-end">
    365368
    366369<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
Note: See TracChangeset for help on using the changeset viewer.