mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 21:30:26 +00:00
Deprecate get_author_link(). Add get_author_posts_url() and the_author_link(). Props Viper007Bond and westi. fixes #2423
git-svn-id: https://develop.svn.wordpress.org/trunk@4139 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -477,4 +477,13 @@ function get_archives($type='', $limit='', $format='html', $before = '', $after
|
||||
return wp_get_archives($args);
|
||||
}
|
||||
|
||||
// Deprecated. Use get_author_posts_url().
|
||||
function get_author_link($echo = false, $author_id, $author_nicename = '') {
|
||||
$link = get_author_posts_link($author_id, $author_nicename);
|
||||
|
||||
if ( $echo )
|
||||
echo $link;
|
||||
return $link;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user