Make WordPress Core

Changeset 39543


Ignore:
Timestamp:
12/07/2016 11:46:22 PM (8 years ago)
Author:
afercia
Message:

Accessibility: Remove inappropriate content from the Menus screen heading.

See #26601.

File:
1 edited

Legend:

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

    r39323 r39543  
    577577?>
    578578<div class="wrap">
    579     <h1><?php echo esc_html( __( 'Menus' ) ); ?>
    580         <?php
    581         if ( current_user_can( 'customize' ) ) :
    582             $focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' );
    583             printf(
    584                 ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
    585                 esc_url( add_query_arg( array(
    586                     array( 'autofocus' => $focus ),
    587                     'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ),
    588                 ), admin_url( 'customize.php' ) ) ),
    589                 __( 'Manage with Live Preview' )
    590             );
    591         endif;
    592         ?>
    593     </h1>
     579    <h1 class="wp-heading-inline"><?php echo esc_html( __( 'Menus' ) ); ?></h1>
     580    <?php
     581    if ( current_user_can( 'customize' ) ) :
     582        $focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' );
     583        printf(
     584            ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
     585            esc_url( add_query_arg( array(
     586                array( 'autofocus' => $focus ),
     587                'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ),
     588            ), admin_url( 'customize.php' ) ) ),
     589            __( 'Manage with Live Preview' )
     590        );
     591    endif;
     592    ?>
     593
     594    <hr class="wp-header-end">
     595
    594596    <h2 class="nav-tab-wrapper wp-clearfix">
    595597        <a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' != $_GET['action'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.