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

WordPress Trac noreply at wordpress.org
Tue Dec 2 22:04:19 UTC 2014


#30580: wp_extract_urls not returning full URL with & query separator
--------------------------+-----------------------------
 Reporter:  trex005       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Related : [[ticket:29314]]

 When formatting a link, and even when inserting a URL in the visual editor
 in WordPress the & separator used for the query variables will be properly
 encoded into &.  However, when you then pass that string to
 wp_extract_urls, it incorrectly truncates the URL at the &.

 Example :
 https://www.youtube.com/watch?v=exvUH2qKLTU&start=25
 Becomes
 https://www.youtube.com/watch?v=exvUH2qKLTU&

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


More information about the wp-trac mailing list