Make WordPress Core

Changeset 54884


Ignore:
Timestamp:
11/26/2022 10:37:20 PM (17 months ago)
Author:
audrasjb
Message:

Twenty Eleven: Remove useless title attributes.

This changeset removes title attributes from various links, as they are adding redundant information.

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

Location:
trunk/src/wp-content/themes/twentyeleven
Files:
3 edited

Legend:

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

    r48782 r54884  
    3030                    <?php
    3131                    /* translators: %s: Author display name. */
    32                     printf( __( 'Author Archives: %s', 'twentyeleven' ), '<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>' );
     32                    printf( __( 'Author Archives: %s', 'twentyeleven' ), '<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>' );
    3333                    ?>
    3434                    </h1>
  • trunk/src/wp-content/themes/twentyeleven/showcase.php

    r47808 r54884  
    164164                                $title = sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) );
    165165                                ?>
    166                     <li><a href="#featured-post-<?php echo esc_attr( $counter_slider ); ?>" title="<?php echo esc_attr( $title ); ?>"<?php echo $class; ?>></a></li>
     166                    <li><a href="#featured-post-<?php echo esc_attr( $counter_slider ); ?>"<?php echo $class; ?>><span class="feature-slider-tooltip" aria-hidden="true" title="<?php echo esc_attr( $title ); ?>"></span><span class="screen-reader-text"><?php echo esc_html( $title ); ?></span></a></li>
    167167                        <?php endwhile; ?>
    168168                    </ul>
  • trunk/src/wp-content/themes/twentyeleven/style.css

    r54492 r54884  
    16291629    height: 14px;
    16301630}
     1631.feature-slider a .feature-slider-tooltip {
     1632    display: block;
     1633    width: 14px;
     1634    height: 14px;
     1635}
    16311636.feature-slider a.active {
    16321637    background: #1982d1;
Note: See TracChangeset for help on using the changeset viewer.