mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Bring out the shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1313,11 +1313,11 @@ function antispambot($emailaddy, $mailto=0) {
|
||||
function _make_url_clickable_cb($matches) {
|
||||
$url = $matches[2];
|
||||
$suffix = '';
|
||||
|
||||
|
||||
/** Include parentheses in the URL only if paired **/
|
||||
while ( substr_count( $url, '(' ) < substr_count( $url, ')' ) ) {
|
||||
$suffix = strrchr( $url, ')' ) . $suffix;
|
||||
$url = substr( $url, 0, strrpos( $url, ')' ) );
|
||||
$suffix = strrchr( $url, ')' ) . $suffix;
|
||||
$url = substr( $url, 0, strrpos( $url, ')' ) );
|
||||
}
|
||||
|
||||
$url = esc_url($url);
|
||||
|
||||
Reference in New Issue
Block a user