mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
Use get_the_author_meta(). Props sivel. see #9393
git-svn-id: https://develop.svn.wordpress.org/trunk@11416 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -127,12 +127,12 @@ function the_author_meta($field = '', $user_id = false) {
|
||||
*
|
||||
* @link http://codex.wordpress.org/Template_Tags/the_author_link
|
||||
* @since 2.1
|
||||
* @uses get_the_author_url()
|
||||
* @uses get_the_author_meta()
|
||||
* @uses the_author()
|
||||
*/
|
||||
function the_author_link() {
|
||||
if (get_the_author_url()) {
|
||||
echo '<a href="' . get_the_author_url() . '" title="' . sprintf(__("Visit %s’s website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>';
|
||||
if ( get_the_author_meta('url') ) {
|
||||
echo '<a href="' . get_the_author_meta('url') . '" title="' . sprintf(__("Visit %s’s website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>';
|
||||
} else {
|
||||
the_author();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user