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:
parent
97fd5ae77c
commit
c05f1dc805
|
@ -55,23 +55,26 @@ if ( $updated ) { ?>
|
|||
<?php } ?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1><?php
|
||||
<h1 class="wp-heading-inline"><?php
|
||||
echo esc_html( $title );
|
||||
?></h1>
|
||||
|
||||
<?php
|
||||
if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) {
|
||||
/** This filter is documented in wp-login.php */
|
||||
$sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
|
||||
printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html_x( 'Add New', 'site' ) );
|
||||
}
|
||||
?></h1>
|
||||
|
||||
<?php
|
||||
if ( empty( $blogs ) ) :
|
||||
echo '<p>';
|
||||
_e( 'You must be a member of at least one site to use this page.' );
|
||||
echo '</p>';
|
||||
else :
|
||||
?>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
<form id="myblogs" method="post">
|
||||
<?php
|
||||
choose_primary_blog();
|
||||
|
|
|
@ -287,7 +287,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1><?php _e( 'Sites' ); ?>
|
||||
<h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1>
|
||||
|
||||
<?php if ( current_user_can( 'create_sites') ) : ?>
|
||||
<a href="<?php echo network_admin_url('site-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
|
||||
|
@ -297,8 +297,10 @@ require_once( ABSPATH . 'wp-admin/admin-header.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 echo $msg; ?>
|
||||
|
||||
|
|
|
@ -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'] ) ) {
|
||||
|
|
|
@ -215,7 +215,9 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
|||
}
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1><?php esc_html_e( 'Users' );
|
||||
<h1 class="wp-heading-inline"><?php esc_html_e( 'Users' ); ?></h1>
|
||||
|
||||
<?php
|
||||
if ( current_user_can( 'create_users') ) : ?>
|
||||
<a href="<?php echo network_admin_url('user-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
|
||||
endif;
|
||||
|
@ -225,7 +227,8 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
|||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) );
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
<?php $wp_list_table->views(); ?>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-39550';
|
||||
$wp_version = '4.8-alpha-39551';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue