[wp-trac] [WordPress Trac] #30580: wp_extract_urls not returning full URL with & query separator
WordPress Trac
noreply at wordpress.org
Fri Feb 4 23:25:35 UTC 2022
#30580: wp_extract_urls not returning full URL with & query separator
--------------------------------------+---------------------
Reporter: trex005 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Formatting | Version: 3.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by ironprogrammer):
Thanks to @voldemortensen for past work on this 😄
I've pushed up [https://github.com/WordPress/wordpress-develop/pull/2283
PR 2283] which refreshes this patch, and adds some additional test cases.
=== Tests Added
- URLs with either named or numbered entities, e.g. `&` or `&`.
- URL with non-escaped ampersand (common for manually written or edited
URLs).
- URLs with typos, such as an
[https://core.trac.wordpress.org/ticket/30580#comment:3 extraneous
semicolon], or a missing semicolon on an HTML entity.
This fix unblocks unit testing needed for #38197.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30580#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list