Ticket #23050: fix.make.clickable.23050.diff
File fix.make.clickable.23050.diff, 470 bytes (added by , 7 years ago) |
---|
-
wp-includes/formatting.php
diff --git wp-includes/formatting.php wp-includes/formatting.php index 904c99b..e80a23c 100644
function make_clickable( $text ) { 1646 1646 } 1647 1647 1648 1648 // Cleanup of accidental links within links 1649 $r = preg_replace( '#(<a( [^>]+?>|>))<a [^>]+?>([^>]+?)</a> </a>#i', "$1$3</a>", $r );1649 $r = preg_replace( '#(<a( [^>]+?>|>))<a [^>]+?>([^>]+?)</a>([^<]+?)</a>#i', "$1$3$4</a>", $r ); 1650 1650 return $r; 1651 1651 } 1652 1652