Make nicename optional.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-07-28 10:50:35 +00:00
parent 2dd0ce000f
commit 2c4a4ac455
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ function the_author_posts_link($idmode='') {
echo '<a href="' . get_author_link(0, $authordata->ID, $authordata->user_nicename) . '" title="' . sprintf(__("Posts by %s"), wp_specialchars(the_author($idmode, false))) . '">' . the_author($idmode, false) . '</a>';
}
function get_author_link($echo = false, $author_id, $author_nicename) {
function get_author_link($echo = false, $author_id, $author_nicename = '') {
global $wpdb, $wp_rewrite, $post, $cache_userdata;
$auth_ID = $author_id;
$link = $wp_rewrite->get_author_permastruct();