WordPress.org

Make WordPress Core

Changeset 18189


Ignore:
Timestamp:
06/08/11 02:02:09 (4 years ago)
Author:
azaozz
Message:

Implement rel="author" in Twenty Eleven and Twenty Ten, props joostdevalk, fixes #17722

Location:
trunk
Files:
12 edited

Legend:

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

    r17959 r18189  
    4141        <footer class="entry-meta"> 
    4242            <?php 
    43                 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 
     43                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 
    4444                    get_permalink(), 
    4545                    get_the_date( 'c' ), 
  • trunk/wp-content/themes/twentyeleven/content-featured.php

    r18029 r18189  
    1616        <div class="entry-meta"> 
    1717            <?php 
    18                 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 
     18                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 
    1919                    get_permalink(), 
    2020                    get_the_date( 'c' ), 
  • trunk/wp-content/themes/twentyeleven/content-gallery.php

    r18186 r18189  
    2020        <div class="entry-meta"> 
    2121            <?php 
    22                 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 
     22                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 
    2323                    get_permalink(), 
    2424                    get_the_date( 'c' ), 
  • trunk/wp-content/themes/twentyeleven/content-image.php

    r18132 r18189  
    3333            <div class="entry-meta"> 
    3434                <?php 
    35                     printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 
     35                    printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 
    3636                        get_permalink(), 
    3737                        get_the_date( 'c' ), 
  • trunk/wp-content/themes/twentyeleven/content-link.php

    r17959 r18189  
    4141        <footer class="entry-meta"> 
    4242            <?php 
    43                 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 
     43                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 
    4444                    get_permalink(), 
    4545                    get_the_date( 'c' ), 
  • trunk/wp-content/themes/twentyeleven/content-quote.php

    r18186 r18189  
    1919            <div class="entry-meta"> 
    2020                <?php 
    21                     printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 
     21                    printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 
    2222                        get_permalink(), 
    2323                        get_the_date( 'c' ), 
  • trunk/wp-content/themes/twentyeleven/content-single.php

    r18072 r18189  
    1515        <div class="entry-meta"> 
    1616            <?php 
    17                 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 
     17                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 
    1818                    get_permalink(), 
    1919                    get_the_date( 'c' ), 
     
    6363                <?php the_author_meta( 'description' ); ?> 
    6464                <div id="author-link"> 
    65                     <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> 
     65                    <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author"> 
    6666                        <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() ); ?> 
    6767                    </a> 
  • trunk/wp-content/themes/twentyeleven/content-status.php

    r17959 r18189  
    4242        <footer class="entry-meta"> 
    4343            <?php 
    44                 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 
     44                printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 
    4545                    get_permalink(), 
    4646                    get_the_date( 'c' ), 
  • trunk/wp-content/themes/twentyeleven/content.php

    r18186 r18189  
    2323            <div class="entry-meta"> 
    2424                <?php 
    25                     printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 
     25                    printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ), 
    2626                        get_permalink(), 
    2727                        get_the_date( 'c' ), 
  • trunk/wp-content/themes/twentyten/loop-attachment.php

    r17305 r18189  
    3232                            printf( __( '<span class="%1$s">By</span> %2$s', 'twentyten' ), 
    3333                                'meta-prep meta-prep-author', 
    34                                 sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 
     34                                sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', 
    3535                                    get_author_posts_url( get_the_author_meta( 'ID' ) ), 
    3636                                    sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), 
  • trunk/wp-content/themes/twentyten/loop-single.php

    r15762 r18189  
    4444                            <?php the_author_meta( 'description' ); ?> 
    4545                            <div id="author-link"> 
    46                                 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> 
     46                                <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author"> 
    4747                                    <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyten' ), get_the_author() ); ?> 
    4848                                </a> 
  • trunk/wp-includes/author-template.php

    r17901 r18189  
    207207        return false; 
    208208    $link = sprintf( 
    209         '<a href="%1$s" title="%2$s">%3$s</a>', 
     209        '<a href="%1$s" title="%2$s" rel="author">%3$s</a>', 
    210210        get_author_posts_url( $authordata->ID, $authordata->user_nicename ), 
    211211        esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), 
Note: See TracChangeset for help on using the changeset viewer.