Accessibility: Remove inappropriate content from the Media Library screens headings.
Props joedolson. See #26601. git-svn-id: https://develop.svn.wordpress.org/trunk@39526 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
27adb4849b
commit
1856218978
@ -73,14 +73,16 @@ if ( 'grid' === $mode ) {
|
|||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
<div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query() ?>">
|
<div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query() ?>">
|
||||||
<h1>
|
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
|
||||||
if ( current_user_can( 'upload_files' ) ) { ?>
|
if ( current_user_can( 'upload_files' ) ) { ?>
|
||||||
<a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
|
<a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</h1>
|
|
||||||
|
<hr class="wp-header-end">
|
||||||
|
|
||||||
<div class="error hide-if-js">
|
<div class="error hide-if-js">
|
||||||
<p><?php printf(
|
<p><?php printf(
|
||||||
/* translators: %s: list view URL */
|
/* translators: %s: list view URL */
|
||||||
@ -221,18 +223,20 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h1>
|
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
|
||||||
if ( current_user_can( 'upload_files' ) ) { ?>
|
if ( current_user_can( 'upload_files' ) ) { ?>
|
||||||
<a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a><?php
|
<a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||||
/* translators: %s: search keywords */
|
/* translators: %s: search keywords */
|
||||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', get_search_query() );
|
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', get_search_query() );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</h1>
|
|
||||||
|
<hr class="wp-header-end">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$message = '';
|
$message = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user