admin管理员组

文章数量:1122846

The make_clickable function will convert a text URL into a clickable HREF. This works well, even with text URLs that contain a space.

But consider this URL when typed into a post or comment box:

 (2).jpg 

That URL will 'break' (when converted to an HREF by make_clickable) because of the closing parenthesis character just before the 'dot', turning the clickable part of the URL into

(2

with the '.jpg' shown as text.

Is this fixable? (and 'duplicateable')? (Tested with WP 6.6.1 on PHP 8.1.28 )

本文标签: url rewritingmakeclickable and parenthesis breaks the URL