WordPress.org

Make WordPress Core

Changeset 11416


Ignore:
Timestamp:
05/20/09 21:32:39 (6 years ago)
Author:
ryan
Message:

Use get_the_author_meta(). Props sivel. see #9393

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r11323 r11416  
    11901190    <author> 
    11911191        <name><?php the_author()?></name> 
    1192 <?php if (get_the_author_url() && get_the_author_url() != 'http://') { ?> 
    1193         <uri><?php the_author_url()?></uri> 
     1192<?php if ( get_the_author_meta('url') && get_the_author_meta('url') != 'http://' ) { ?> 
     1193        <uri><?php the_author_meta('url') ?></uri> 
    11941194<?php } ?> 
    11951195    </author> 
  • 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(); 
  • trunk/wp-includes/feed-atom.php

    r11323 r11416  
    3232        <author> 
    3333            <name><?php the_author() ?></name> 
    34             <?php $author_url = get_the_author_url(); if ( !empty($author_url) ) : ?> 
    35             <uri><?php the_author_url()?></uri> 
     34            <?php $author_url = get_the_author_meta('url'); if ( !empty($author_url) ) : ?> 
     35            <uri><?php the_author_meta('url')?></uri> 
    3636            <?php endif; ?> 
    3737        </author> 
Note: See TracChangeset for help on using the changeset viewer.