Accessibility: Remove inappropriate content from the Network screens headings.
See #26601. Built from https://develop.svn.wordpress.org/trunk@39551 git-svn-id: http://core.svn.wordpress.org/trunk@39491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -247,13 +247,20 @@ require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="page-title-action"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
|
||||
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
|
||||
|
||||
<?php if ( current_user_can( 'install_themes' ) ) : ?>
|
||||
<a href="theme-install.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'theme' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
/* translators: %s: search keywords */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) );
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
<?php
|
||||
if ( isset( $_GET['enabled'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user