Accessibility: Remove inappropriate content from the Plugins screen heading.

See #26601.

Built from https://develop.svn.wordpress.org/trunk@39535


git-svn-id: http://core.svn.wordpress.org/trunk@39475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2016-12-07 18:48:40 +00:00
parent 87882d0463
commit 993f895c29
4 changed files with 11 additions and 6 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' );

File diff suppressed because one or more lines are too long

View File

@ -491,7 +491,11 @@ 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>
<?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
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39534';
$wp_version = '4.8-alpha-39535';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.