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:
Andrea Fercia
2016-12-09 18:57:42 +00:00
parent 97fd5ae77c
commit c05f1dc805
5 changed files with 26 additions and 11 deletions

View File

@@ -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();