Accessibility: Remove inappropriate content from the Add Plugins screen heading.

See #26601.

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


git-svn-id: http://core.svn.wordpress.org/trunk@39476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2016-12-07 19:06:41 +00:00
parent 993f895c29
commit 64f63499f8
2 changed files with 16 additions and 13 deletions

View File

@ -111,18 +111,21 @@ get_current_screen()->set_screen_reader_content( array(
include(ABSPATH . 'wp-admin/admin-header.php'); include(ABSPATH . 'wp-admin/admin-header.php');
?> ?>
<div class="wrap <?php echo esc_attr( "plugin-install-tab-$tab" ); ?>"> <div class="wrap <?php echo esc_attr( "plugin-install-tab-$tab" ); ?>">
<h1> <h1 class="wp-heading-inline"><?php
<?php echo esc_html( $title );
echo esc_html( $title ); ?></h1>
if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) {
printf( ' <a href="%s" class="upload-view-toggle page-title-action"><span class="upload">%s</span><span class="browse">%s</span></a>', <?php
( 'upload' === $tab ) ? self_admin_url( 'plugin-install.php' ) : self_admin_url( 'plugin-install.php?tab=upload' ), if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) {
__( 'Upload Plugin' ), printf( ' <a href="%s" class="upload-view-toggle page-title-action"><span class="upload">%s</span><span class="browse">%s</span></a>',
__( 'Browse Plugins' ) ( 'upload' === $tab ) ? self_admin_url( 'plugin-install.php' ) : self_admin_url( 'plugin-install.php?tab=upload' ),
); __( 'Upload Plugin' ),
} __( 'Browse Plugins' )
?> );
</h1> }
?>
<hr class="wp-header-end">
<?php <?php
/* /*

View File

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