Opened 10 years ago
Closed 10 years ago
#29314 closed defect (bug) (fixed)
wp_extract_urls is not returning full url
Reported by: | pushplaybang | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 3.7 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
wp_extract_urls doesn't seem to return the query part of an extracted url. for example
http://www.youtube.com/watch?v=exvUH2qKLTU
is returned as
this is an incredibly useful function and surely should be able to handle this sort of URL?
Attachments (2)
Change History (8)
@
10 years ago
Patch to fix link containing "?" and issue extracting url from shortcode tags: [shortcode attr="http://.."]http:...[/shortcode]
#2
@
10 years ago
I had similar issue where we have shortcode in the form [shortcode image="http://.."]http://..[/shortcode]
the function would extract the url value as: http://..."]http://..
Attached patch file is the suggest modification to fix both issues.
Note: See
TracTickets for help on using
tickets.
Note that the function is primarily used for pings/trackbacks (it was added in [25313] for #9064).