Accessibility: Remove inappropriate content from the Widgets screen heading.
See #26601. git-svn-id: https://develop.svn.wordpress.org/trunk@39541 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fd4b770d7e
commit
3760639b2c
@ -344,24 +344,27 @@ $errors = array(
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1>
|
||||
<h1 class="wp-heading-inline"><?php
|
||||
echo esc_html( $title );
|
||||
?></h1>
|
||||
|
||||
<?php
|
||||
echo esc_html( $title );
|
||||
if ( current_user_can( 'customize' ) ) {
|
||||
printf(
|
||||
' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
|
||||
esc_url( add_query_arg(
|
||||
array(
|
||||
array( 'autofocus' => array( 'panel' => 'widgets' ) ),
|
||||
'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )
|
||||
),
|
||||
admin_url( 'customize.php' )
|
||||
) ),
|
||||
__( 'Manage with Live Preview' )
|
||||
);
|
||||
}
|
||||
if ( current_user_can( 'customize' ) ) {
|
||||
printf(
|
||||
' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
|
||||
esc_url( add_query_arg(
|
||||
array(
|
||||
array( 'autofocus' => array( 'panel' => 'widgets' ) ),
|
||||
'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )
|
||||
),
|
||||
admin_url( 'customize.php' )
|
||||
) ),
|
||||
__( 'Manage with Live Preview' )
|
||||
);
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
|
||||
<div id="message" class="updated notice is-dismissible"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
||||
|
Loading…
Reference in New Issue
Block a user