Make WordPress Core

Changeset 5699


Ignore:
Timestamp:
06/13/2007 06:03:17 PM (17 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.