[wp-trac] [WordPress Trac] #62037: make_clickable doesn't handle closing parenthesis character just before the 'dot' on a file URL.

WordPress Trac noreply at wordpress.org
Thu Sep 12 18:40:03 UTC 2024


#62037: make_clickable doesn't handle closing parenthesis character just before the
'dot' on a file URL.
-------------------------------+------------------------------
 Reporter:  rhellewell@…       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Formatting         |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by hellofromTonya):

 I was curious if there are test dataset(s) for this function covering
 `()`. Yes, there is.

 [https://core.trac.wordpress.org/browser/trunk/tests/phpunit/tests/formatting/makeClickable.php#L201
 Starting here in the tests], there are multiple datasets testing for URLs
 with `()` including. These were added via #10990 to specifically test for
 URLs with brackets within the URL.

 Looking at #10990, it's scope was to "Include trailing ) in make_clickable
 if it is part of the URL" and was committed in 2.9.0.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62037#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list