Issue#45 author retrieval information for author.php and fix for the deprecated get_author_link for displaypost.php, courtesy halkeye

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2010-01-08 03:39:51 -08:00
parent ba3c401231
commit b333f28b2b
2 changed files with 4 additions and 4 deletions

View File

@ -3,8 +3,7 @@
<?php
if(get_query_var('author_name') ) {
// NOTE: 2.0 bug requires: get_userdatabylogin(get_the_author_login());
$curauth = get_userdatabylogin(get_query_var('author_name'));
$curauth = get_user_by('slug', get_query_var('author_name'));
} else {
$curauth = get_userdata(get_query_var('author'));
}

View File

@ -44,8 +44,9 @@ function comicpress_display_post_calendar($is_comic = false) {
}
function comicpress_display_post_author() {
global $post;
$post_author = "<span class=\"post-date\">".get_the_time('F jS, Y')."</span> <span class=\"pipe\">|</span> <span class=\"post-author\"> ".__(' by ','comicpress'). get_the_author_meta('display_name')."</span>\r\n";
global $post,$authordata;
$post_author = "<span class=\"post-date\">".get_the_time('F jS, Y')."</span> <span class=\"pipe\">|</span> <span class=\"post-author\"> ".__(' by ','comicpress')."<a href=\"".get_author_posts_url( $authordata->ID, $authordata->user_nicename )."\">".get_the_author()."</a></span>\r\n";
echo apply_filters('comicpress_display_post_author',$post_author);
}