Accessibility: Remove inappropriate content from the Plugins screen heading.

See #26601.


git-svn-id: https://develop.svn.wordpress.org/trunk@39535 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2016-12-07 18:47:47 +00:00
parent ee5b840228
commit 27bc2d9db6
2 changed files with 9 additions and 4 deletions

View File

@ -2259,7 +2259,7 @@
} else if ( $oldSubTitle.length ) {
$oldSubTitle.replaceWith( $subTitle );
} else {
$( '.wrap h1' ).append( $subTitle );
$( '.wp-header-end' ).before( $subTitle );
}
$( 'body' ).removeClass( 'loading-content' );

View File

@ -491,9 +491,13 @@ if ( ! empty( $invalid ) ) {
<?php endif; ?>
<div class="wrap">
<h1><?php echo esc_html( $title );
<h1 class="wp-heading-inline"><?php
echo esc_html( $title );
?></h1>
<?php
if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'plugin' ); ?></a>
<?php
}
@ -502,7 +506,8 @@ if ( strlen( $s ) ) {
printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( urldecode( $s ) ) );
}
?>
</h1>
<hr class="wp-header-end">
<?php
/**