Make WordPress Core


Ignore:
Timestamp:
05/20/2009 09:32:39 PM (16 years ago)
Author:
ryan
Message:

Use get_the_author_meta(). Props sivel. see #9393

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/author-template.php

    r11204 r11416  
    128128 * @link http://codex.wordpress.org/Template_Tags/the_author_link
    129129 * @since 2.1
    130  * @uses get_the_author_url()
     130 * @uses get_the_author_meta()
    131131 * @uses the_author()
    132132 */
    133133function the_author_link() {
    134     if (get_the_author_url()) {
    135         echo '<a href="' . get_the_author_url() . '" title="' . sprintf(__("Visit %s&#8217;s website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>';
     134    if ( get_the_author_meta('url') ) {
     135        echo '<a href="' . get_the_author_meta('url') . '" title="' . sprintf(__("Visit %s&#8217;s website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>';
    136136    } else {
    137137        the_author();
Note: See TracChangeset for help on using the changeset viewer.