Make WordPress Core

Opened 8 years ago

Last modified 8 years ago

#40324 new defect (bug)

make_clickable doesn't work if url stands after an even number off spaces

Reported by: wordpressrene's profile wordpressrene Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7
Component: Formatting Keywords:
Focuses: Cc:

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

Change History (1)

#1 @lukecavanagh
8 years ago

@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?

Note: See TracTickets for help on using tickets.