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/tests/phpunit/tests/formatting/MakeClickable.php

    r26094 r26974  
    381381        }
    382382    }
     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    }
    383392}
Note: See TracChangeset for help on using the changeset viewer.