Ticket #45352: 45352.diff
| File 45352.diff, 829 bytes (added by , 8 years ago) |
|---|
-
wp-includes/formatting.php
2780 2780 * @return string Converted content. 2781 2781 */ 2782 2782 function wp_targeted_link_rel( $text ) { 2783 2784 $original_text = $text; 2785 2783 2786 // Don't run (more expensive) regex if no links with targets. 2784 2787 if ( stripos( $text, 'target' ) !== false && stripos( $text, '<a ' ) !== false ) { 2785 2788 $text = preg_replace_callback( '|<a\s([^>]*target\s*=[^>]*)>|i', 'wp_targeted_link_rel_callback', $text ); 2786 2789 } 2790 2791 // Return original link from wp_targeted_link_rel_callback after applying wp_targeted_link_rel if rel is empty. 2792 if ( strpos( $text, 'rel=""' ) !== false ) { 2793 return $original_text; 2794 } 2787 2795 2788 2796 return $text; 2789 2797 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)