[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:29:34 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:
-------------------------------+------------------------------
Changes (by hellofromTonya):
* keywords: => reporter-feedback
Comment:
Thanks for clarifying @rhellewellgmailcom.
To isolate it to just the `make_clickable()` function, I added a `wp-
content/mu-plugins/test.php` file with the following code:
{{{#!php
<?php
add_action( 'init', function() {
$test_url = 'https://www.example.com/some-page(2).jpg';
$results = make_clickable( $test_url );
var_dump( $results ); // Should be `string(106)
"https://www.example.com/some-page(2).jpg"`.
exit;
});
}}}
On both WordPress 6.5.4 and 6.6.2, the returned string from
`make_clickable()` was:
{{{
string(106) "https://www.example.com/some-page(2).jpg"
}}}
`make_clickable()` is working in my testing.
@rhellewellgmailcom can you please share how you isolate the issue you're
seeing to this function? For example, are you directly invoking
`make_clickable()` in your plugin?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62037#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list