Ticket #20047: 20047-2.diff

File 20047-2.diff, 734 bytes (added by CoenJacobs, 13 months ago)

Improved version of Ipstenu's patch, using 'author external' as rel

Line 
1Index: wp-includes/author-template.php
2===================================================================
3--- wp-includes/author-template.php     (revision 20450)
4+++ wp-includes/author-template.php     (working copy)
5@@ -140,7 +140,7 @@
6  */
7 function get_the_author_link() {
8        if ( get_the_author_meta('url') ) {
9-               return '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s&#8217;s website"), get_the_author()) ) . '" rel="external">' . get_the_author() . '</a>';
10+               return '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s&#8217;s website"), get_the_author()) ) . '" rel="author external">' . get_the_author() . '</a>';
11        } else {
12                return get_the_author();
13        }