Make WordPress Core

Ticket #25054: 25054.titleattr-2.diff

File 25054.titleattr-2.diff, 16.0 KB (added by lancewillett, 12 years ago)

Refreshed title attribute removal

  • wp-content/themes/twentyfourteen/author.php

     
    2727                                                the_post();
    2828
    2929                                                printf( __( 'All posts by %s', 'twentyfourteen' ), sprintf(
    30                                                                 '<span class="vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="me">%3$s</a></span>',
     30                                                                '<span class="vcard"><a class="url fn n" href="%1$s" rel="me">%2$s</a></span>',
    3131                                                                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    32                                                                 esc_attr( get_the_author() ),
    3332                                                                get_the_author()
    3433                                                ) );
    3534                                        ?>
  • wp-content/themes/twentyfourteen/content-aside.php

     
    1919
    2020                <div class="entry-meta">
    2121                        <span class="post-format">
    22                                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'aside' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'aside' ) ) ); ?>"><?php echo get_post_format_string( 'aside' ); ?></a>
     22                                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'aside' ) ); ?>"><?php echo get_post_format_string( 'aside' ); ?></a>
    2323                        </span>
    2424
    2525                        <?php twentyfourteen_posted_on(); ?>
  • wp-content/themes/twentyfourteen/content-featured-post.php

     
    66?>
    77
    88<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    9         <a class="attachment-featured-featured" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>">
     9        <a class="attachment-featured-featured" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
    1010                <?php
    1111                        if ( has_post_thumbnail() ) :
    1212                                the_post_thumbnail( 'featured-thumbnail-featured' );
  • wp-content/themes/twentyfourteen/content-gallery.php

     
    2929                <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?>
    3030        </div>
    3131        <?php elseif ( $image ) : ?>
    32         <a class="attachment-featured-thumbnail" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>">
     32        <a class="attachment-featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
    3333                <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?>
    3434        </a>
    3535        <?php endif; ?>
     
    5151
    5252                <div class="entry-meta">
    5353                        <span class="post-format">
    54                                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'gallery' ) ) ); ?>"><?php echo get_post_format_string( 'gallery' ); ?></a>
     54                                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>"><?php echo get_post_format_string( 'gallery' ); ?></a>
    5555                        </span>
    5656
    5757                        <?php twentyfourteen_posted_on(); ?>
  • wp-content/themes/twentyfourteen/content-image.php

     
    2727
    2828                <div class="entry-meta">
    2929                        <span class="post-format">
    30                                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'image' ) ) ); ?>"><?php echo get_post_format_string( 'image' ); ?></a>
     30                                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>"><?php echo get_post_format_string( 'image' ); ?></a>
    3131                        </span>
    3232
    3333                        <?php twentyfourteen_posted_on(); ?>
  • wp-content/themes/twentyfourteen/content-link.php

     
    1919
    2020                <div class="entry-meta">
    2121                        <span class="post-format">
    22                                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'link' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'link' ) ) ); ?>"><?php echo get_post_format_string( 'link' ); ?></a>
     22                                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'link' ) ); ?>"><?php echo get_post_format_string( 'link' ); ?></a>
    2323                        </span>
    2424
    2525                        <?php twentyfourteen_posted_on(); ?>
  • wp-content/themes/twentyfourteen/content-quote.php

     
    1919
    2020                <div class="entry-meta">
    2121                        <span class="post-format">
    22                                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'quote' ) ) ); ?>"><?php echo get_post_format_string( 'quote' ); ?></a>
     22                                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>"><?php echo get_post_format_string( 'quote' ); ?></a>
    2323                        </span>
    2424
    2525                        <?php twentyfourteen_posted_on(); ?>
  • wp-content/themes/twentyfourteen/content-video.php

     
    2727
    2828                <div class="entry-meta">
    2929                        <span class="post-format">
    30                                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'video' ) ) ); ?>"><?php echo get_post_format_string( 'video' ); ?></a>
     30                                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>"><?php echo get_post_format_string( 'video' ); ?></a>
    3131                        </span>
    3232
    3333                        <?php twentyfourteen_posted_on(); ?>
  • wp-content/themes/twentyfourteen/footer.php

     
    1818
    1919                        <div class="site-info">
    2020                                <?php do_action( 'twentyfourteen_credits' ); ?>
    21                                 <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyfourteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyfourteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a>
     21                                <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyfourteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a>
    2222                        </div><!-- .site-info -->
    2323                </footer><!-- #colophon -->
    2424        </div><!-- #page -->
  • wp-content/themes/twentyfourteen/functions.php

     
    332332                        $next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) );
    333333        }
    334334
    335         printf( '<a href="%1$s" title="%2$s" rel="attachment">%3$s</a>',
     335        printf( '<a href="%1$s" rel="attachment">%2$s</a>',
    336336                esc_url( $next_attachment_url ),
    337                 the_title_attribute( array( 'echo' => false ) ),
    338337                wp_get_attachment_image( $post->ID, $attachment_size )
    339338        );
    340339}
  • wp-content/themes/twentyfourteen/header.php

     
    2828
    2929        <?php if ( get_header_image() ) : ?>
    3030        <div id="site-header">
    31                 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
     31                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
    3232                        <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
    3333                </a>
    3434        </div>
     
    3636
    3737        <header id="masthead" class="site-header" role="banner">
    3838                <div class="header-main">
    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
    4141                        <div class="header-extra">
    4242                                <div class="search-toggle">
     
    4646
    4747                        <nav role="navigation" class="site-navigation primary-navigation">
    4848                                <h1 class="screen-reader-text"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></h1>
    49                                 <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyfourteen' ); ?>"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a></div>
     49                                <div class="screen-reader-text skip-link"><a href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a></div>
    5050                                <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    5151                        </nav>
    5252                </div>
  • wp-content/themes/twentyfourteen/image.php

     
    2424
    2525                                        <span class="entry-date"><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time></span>
    2626
    27                                         <span class="full-size-link"><a href="<?php echo wp_get_attachment_url(); ?>" title="Link to full-size image"><?php echo $metadata['width']; ?> &times; <?php echo $metadata['height']; ?></a></span>
     27                                        <span class="full-size-link"><a href="<?php echo wp_get_attachment_url(); ?>"><?php echo $metadata['width']; ?> &times; <?php echo $metadata['height']; ?></a></span>
    2828
    29                                         <span class="parent-post-link"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="Return to <?php echo esc_attr( get_the_title( $post->post_parent ) ); ?>" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?></a></span>
     29                                        <span class="parent-post-link"><a href="<?php echo get_permalink( $post->post_parent ); ?>" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?></a></span>
    3030                                        <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
    3131                                </div><!-- .entry-meta -->
    3232                        </header><!-- .entry-header -->
     
    5858                        <footer class="entry-meta">
    5959                                <?php
    6060                                        if ( comments_open() && pings_open() ) : // Comments and trackbacks open
    61                                                 printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() );
     61                                                printf( __( '<a class="comment-link" href="#respond">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() );
    6262                                        elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open
    63                                                 printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() );
     63                                                printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() );
    6464                                        elseif ( comments_open() && ! pings_open() ) : // Only comments open
    65                                                 _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyfourteen' );
     65                                                _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond">post a comment</a>.', 'twentyfourteen' );
    6666                                        elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed
    6767                                                _e( 'Both comments and trackbacks are currently closed.', 'twentyfourteen' );
    6868                                        endif;
  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    9494        if ( is_sticky() && is_home() && ! is_paged() )
    9595                echo '<span class="featured-post">' . __( 'Sticky', 'twentyfourteen' ) . '</span>';
    9696
    97         printf( __( '<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyfourteen' ),
     97        printf( __( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>', 'twentyfourteen' ),
    9898                esc_url( get_permalink() ),
    99                 esc_attr( get_the_time() ),
    10099                esc_attr( get_the_date( 'c' ) ),
    101100                esc_html( get_the_date() ),
    102101                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    103                 esc_attr( sprintf( __( 'View all posts by %s', 'twentyfourteen' ), get_the_author() ) ),
    104102                get_the_author()
    105103        );
    106104}
  • wp-content/themes/twentyfourteen/inc/widgets.php

     
    156156                                                                        the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    157157                                                                endif;
    158158
    159                                                                 printf( __( '<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyfourteen' ),
     159                                                                printf( __( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%6s</a></span></span>', 'twentyfourteen' ),
    160160                                                                        esc_url( get_permalink() ),
    161                                                                         esc_attr( get_the_time() ),
    162161                                                                        esc_attr( get_the_date( 'c' ) ),
    163162                                                                        esc_html( get_the_date() ),
    164163                                                                        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
  • wp-content/themes/twentyfourteen/rtl.css

     
    176176        border-right: none;
    177177}
    178178
    179 .tag-links a:hover:before {
     179.tag-links a:hover:before,
     180.tag-links a:focus:before {
    180181        border-left-color: #2b2b2b;
    181182}
    182183