[wp-trac] [WordPress Trac] #30580: wp_extract_urls not returning full URL with & query separator

WordPress Trac noreply at wordpress.org
Fri Apr 1 03:39:10 UTC 2022

#30580: wp_extract_urls not returning full URL with & query separator
 Reporter:  trex005                              |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  Formatting                           |     Version:  3.7
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing commit                                 |
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"53044" 53044]:
 #!CommitTicketReference repository="" revision="53044"
 Formatting: Account for HTML entities in `wp_extract_urls()`.

 Prevent `wp_extract_urls()` trimming HTML entities within URLs. Correctly
 escaped URLs such as https://youtube.com/watch?v=dQw4w9WgXcQ&t=1 will
 now be extracted as https://youtube.com/watch?v=dQw4w9WgXcQ&t=1 rather
 than truncated.

 Props trex005, voldemortensen, johnbillion, ironprogrammer, costdev,
 Fixes #30580

Ticket URL: <https://core.trac.wordpress.org/ticket/30580#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list