Skip to content

Commit

Permalink
Accessibility: Remove inappropriate content from the Link Manager scr…
Browse files Browse the repository at this point in the history
…eens headings.

See #26601.

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


git-svn-id: http://core.svn.wordpress.org/trunk@39477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
afercia committed Dec 7, 2016
1 parent 64f6349 commit 2c22783
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
8 changes: 7 additions & 1 deletion wp-admin/edit-link-form.php
Expand Up @@ -70,7 +70,13 @@
?>

<div class="wrap">
<h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="page-title-action"><?php echo esc_html_x('Add New', 'link'); ?></a></h1>
<h1 class="wp-heading-inline"><?php
echo esc_html( $title );
?></h1>

<a href="link-add.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'link' ); ?></a>

<hr class="wp-header-end">

<?php if ( isset( $_GET['added'] ) ) : ?>
<div id="message" class="updated notice is-dismissible"><p><?php _e('Link added.'); ?></p></div>
Expand Down
11 changes: 9 additions & 2 deletions wp-admin/link-manager.php
Expand Up @@ -79,13 +79,20 @@
?>

<div class="wrap nosubsub">
<h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="page-title-action"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
<h1 class="wp-heading-inline"><?php
echo esc_html( $title );
?></h1>

<a href="link-add.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'link' ); ?></a>

<?php
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
/* translators: %s: search keywords */
printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
}
?>
</h1>

<hr class="wp-header-end">

<?php
if ( isset($_REQUEST['deleted']) ) {
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39536';
$wp_version = '4.8-alpha-39537';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 2c22783

Please sign in to comment.