Ticket #11360: 11360.diff
File 11360.diff, 576 bytes (added by , 15 years ago) |
---|
-
wp-includes/formatting.php
1393 1393 function wp_rel_nofollow_callback( $matches ) { 1394 1394 $text = $matches[1]; 1395 1395 $text = str_replace(array(' rel="nofollow"', " rel='nofollow'"), '', $text); 1396 return "<a $text rel=\"nofollow\">"; 1396 if (preg_match('%href=["\']('.get_option('siteurl').')?(\.){0,2}(/|#|["\'])%i', $text)) 1397 return "<a $text>"; 1398 else 1399 return "<a $text rel=\"nofollow\">"; 1397 1400 } 1398 1401 1399 1402