Opened 4 months ago

#23308 new defect (bug)

make_clickable problem with multiple "Punctuation URL character"

Reported by: DrPepper75 Owned by:
Priority: normal Milestone: Awaiting Review
Component: Formatting Version: 3.5.1
Severity: normal Keywords:
Cc:

Description

make_clickable problem with multiple "Punctuation URL character"

E.g.

http://www.wordpress.org/some-(parentheses).html

Results in this html code:

<a href="http://www.wordpress.org/some-(parentheses)" rel="nofollow">http://www.wordpress.org/some-(parentheses)</a>.html

But obvious should be:

<a href="http://www.wordpress.org/some-(parentheses)" rel="nofollow">http://www.wordpress.org/some-(parentheses).html</a>

I suggest to replace:
wp-includes/formatting.php:1603

[\'.,;:!?)]  # Punctuation URL character

with

[\'.,;:!?)]{1,}  # Punctuation URL character

Change History (0)

Note: See TracTickets for help on using tickets.