WordPress.org

Make WordPress Core

Ticket #19028: 19028.diff

File 19028.diff, 776 bytes (added by dd32, 3 years ago)
  • formatting.php

     
    14271427        $ret = preg_replace_callback('#([\s>])((www|ftp)\.[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]+)#is', '_make_web_ftp_clickable_cb', $ret); 
    14281428        $ret = preg_replace_callback('#([\s>])([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})#i', '_make_email_clickable_cb', $ret); 
    14291429        // this one is not in an array because we need it to run last, for cleanup of accidental links within links 
    1430         $ret = preg_replace("#(<a( [^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i", "$1$3</a>", $ret); 
     1430        $ret = preg_replace("#(<a(\s+[^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i", "$1$3</a>", $ret); 
    14311431        $ret = trim($ret); 
    14321432        return $ret; 
    14331433}