Revert "Merge pull request #36 from kovshenin/patch-5"

This reverts commit 800b9ebcd1, reversing
changes made to ce4bef6129.
This commit is contained in:
Konstantin Kovshenin 2012-08-31 08:54:22 +04:00
parent 2bfb5ef953
commit 461976d48c
1 changed files with 10 additions and 3 deletions

View File

@ -25,9 +25,16 @@ get_header(); ?>
printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' ); printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' );
} elseif ( is_author() ) { } elseif ( is_author() ) {
// Get the queried author data. /* Queue the first post, that way we know
$author = get_queried_object(); * what author we're dealing with (if that is the case).
printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( $author->ID ) ) . '" title="' . esc_attr( $author->display_name ) . '" rel="me">' . esc_html( $author->display_name ) . '</a></span>' ); */
the_post();
printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
} elseif ( is_day() ) { } elseif ( is_day() ) {
printf( __( 'Daily Archives: %s', '_s' ), '<span>' . get_the_date() . '</span>' ); printf( __( 'Daily Archives: %s', '_s' ), '<span>' . get_the_date() . '</span>' );