Make WordPress Core

Changeset 54924


Ignore:
Timestamp:
12/01/2022 10:04:13 PM (15 months ago)
Author:
audrasjb
Message:

Twenty Twelve: 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.

Location:
trunk/src/wp-content/themes/twentytwelve
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwelve/author.php

    r48782 r54924  
    3434                <?php
    3535                /* translators: Author display name. */
    36                 printf( __( 'Author Archives: %s', 'twentytwelve' ), '<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>' );
     36                printf( __( 'Author Archives: %s', 'twentytwelve' ), '<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>' );
    3737                ?>
    3838                </h1>
  • trunk/src/wp-content/themes/twentytwelve/header.php

    r54405 r54924  
    3737    <header id="masthead" class="site-header">
    3838        <hgroup>
    39             <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
     39            <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    4040            <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    4141        </hgroup>
     
    4343        <nav id="site-navigation" class="main-navigation">
    4444            <button class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></button>
    45             <a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
     45            <a class="assistive-text" href="#content"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
    4646            <?php
    4747            wp_nav_menu(
Note: See TracChangeset for help on using the changeset viewer.