Accessibility: Remove inappropriate content from the Edit Categories and Edit Tags screens headings.

See #26601.


git-svn-id: https://develop.svn.wordpress.org/trunk@39553 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2016-12-09 20:49:49 +00:00
parent 25f40667d0
commit 7b7914a99f
1 changed files with 5 additions and 2 deletions

View File

@ -290,13 +290,16 @@ if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) {
?>
<div class="wrap nosubsub">
<h1><?php echo esc_html( $title );
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
<?php
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
/* translators: %s: search keywords */
printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
}
?>
</h1>
<hr class="wp-header-end">
<?php if ( $message ) : ?>
<div id="message" class="<?php echo $class; ?> notice is-dismissible"><p><?php echo $message; ?></p></div>