Opened 9 years ago
Last modified 9 years ago
#40324 new defect (bug)
make_clickable doesn't work if url stands after an even number off spaces
| Reported by: | wordpressrene | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Formatting | Version: | 4.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
The function make_clickable doesn't work, if an even number of spaces is written before an url
Examples:
Test post http://de.wordpress.org -> 1 space = works Test post http://de.wordpress.org -> 2 spaces = doesn't work Test post http://de.wordpress.org -> 3 spaces = works Test post http://de.wordpress.org -> 4 spaces = doesn't work
I tested it in WP 4.7 and 4.7.3
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@wordpressrene
https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-includes/formatting.php#L2551
So similar function to to remove trailing white spaces then in make_clickable?