Changeset 5699

Show
Ignore:
Timestamp:
06/13/07 18:03:17 (1 year ago)
Author:
ryan
Message:

Don't output author uri tag if uri is empty.

Files:

Legend:

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

    r5638 r5699  
    165165function get_the_author_url() { 
    166166    global $authordata; 
     167 
     168    if ( 'http://' == $authordata>user_url ) 
     169        return ''; 
     170 
    167171    return $authordata->user_url; 
    168172} 
  • trunk/wp-includes/feed-atom.php

    r5640 r5699  
    2727        <author> 
    2828            <name><?php the_author() ?></name> 
     29            <?php $author_url = get_the_author_url(); if ( !empty($author_url) ) : ?> 
    2930            <uri><?php the_author_url()?></uri> 
     31            <?php endif; ?> 
    3032        </author> 
    3133        <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>