Changeset 26974
- Timestamp:
- 01/17/2014 09:31:59 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r26972 r26974 1743 1743 1744 1744 // Cleanup of accidental links within links 1745 $r = preg_replace( '#(<a( 1745 $r = preg_replace( '#(<a([ \r\n\t]+[^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i', "$1$3</a>", $r ); 1746 1746 return $r; 1747 1747 } -
trunk/tests/phpunit/tests/formatting/MakeClickable.php
r26094 r26974 381 381 } 382 382 } 383 384 /** 385 * @ticket 19028 386 */ 387 function test_line_break_in_existing_clickable_link() { 388 $html = "<a 389 href='mailto:someone@example.com'>someone@example.com</a>"; 390 $this->assertEquals( $html, make_clickable( $html ) ); 391 } 383 392 }
Note: See TracChangeset
for help on using the changeset viewer.