[wp-trac] [WordPress Trac] #65030: Customize: `isLinkPreviewable()` regex overrides `customize_allowed_urls` filter for sites with `/wp-content/` in home URL
WordPress Trac
noreply at wordpress.org
Tue Apr 7 10:14:09 UTC 2026
#65030: Customize: `isLinkPreviewable()` regex overrides `customize_allowed_urls`
filter for sites with `/wp-content/` in home URL
--------------------------+------------------------------
Reporter: abhi3315 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 6.9.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+------------------------------
Comment (by abhi3315):
Updated the proposed fix. The original `! matchesAllowedUrl` approach
wouldn't work because `matchesAllowedUrl` is always true at that point.
The correct fix captures the matched allowed URL's path prefix and applies
the regex only to the remainder. See PR: https://github.com/WordPress
/wordpress-develop/pull/11459
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65030#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list