Ticket #9393: 9393-the_author_url.diff
| File 9393-the_author_url.diff, 2.0 KB (added by , 17 years ago) |
|---|
-
wp-includes/feed-atom.php
31 31 <entry> 32 32 <author> 33 33 <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> 36 36 <?php endif; ?> 37 37 </author> 38 38 <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title> -
wp-includes/author-template.php
127 127 * 128 128 * @link http://codex.wordpress.org/Template_Tags/the_author_link 129 129 * @since 2.1 130 * @uses get_the_author_ url()130 * @uses get_the_author_meta() 131 131 * @uses the_author() 132 132 */ 133 133 function the_author_link() { 134 if ( get_the_author_url()) {135 echo '<a href="' . get_the_author_ url() . '" title="' . sprintf(__("Visit %s’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’s website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>'; 136 136 } else { 137 137 the_author(); 138 138 } -
wp-app.php
1189 1189 </app:control> 1190 1190 <author> 1191 1191 <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> 1194 1194 <?php } ?> 1195 1195 </author> 1196 1196 <?php if($GLOBALS['post']->post_type == 'attachment') { ?>