Make WordPress Core


Ignore:
Timestamp:
01/17/2014 09:31:59 AM (11 years ago)
Author:
nacin
Message:

make_clickable: When cleaning up accidental links within links, account for the tag being split by newlines.

props dd32.
fixes #19028.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r26972 r26974  
    17431743
    17441744    // Cleanup of accidental links within links
    1745     $r = preg_replace( '#(<a( [^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i', "$1$3</a>", $r );
     1745    $r = preg_replace( '#(<a([ \r\n\t]+[^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i', "$1$3</a>", $r );
    17461746    return $r;
    17471747}
Note: See TracChangeset for help on using the changeset viewer.