Twenty Thirteen: Remove unwanted title attributes.

This changeset removes `title` attributes from various links, as they add redundant information.

Follow-up to [53844].

Props sabernhardt, costdev, mukesh27.
See #57199, #24766, #24203.


git-svn-id: https://develop.svn.wordpress.org/trunk@54923 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-12-01 21:54:57 +00:00
parent 4963aee660
commit 14d19730bb
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ get_header(); ?>
<h1 class="archive-title">
<?php
/* translators: %s: Author display name. */
printf( __( 'All posts by %s', 'twentythirteen' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
printf( __( 'All posts by %s', 'twentythirteen' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" rel="me">' . get_the_author() . '</a></span>' );
?>
</h1>
</header><!-- .archive-header -->

View File

@ -34,7 +34,7 @@
<?php wp_body_open(); ?>
<div id="page" class="hfeed site">
<header id="masthead" class="site-header">
<a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</a>
@ -42,7 +42,7 @@
<div id="navbar" class="navbar">
<nav id="site-navigation" class="navigation main-navigation">
<button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
<a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
<a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
<?php
wp_nav_menu(
array(