mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Make nicename optional.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2dd0ce000f
commit
2c4a4ac455
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user