Opened 12 years ago
Closed 12 years ago
#29314 closed defect (bug) (fixed)
wp_extract_urls is not returning full url
| Reported by: | pushplaybang | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | General | Version: | 3.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
@
12 years ago
Patch to fix link containing "?" and issue extracting url from shortcode tags: [shortcode attr="http://.."]http:...[/shortcode]
#2
@
12 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Note that the function is primarily used for pings/trackbacks (it was added in [25313] for #9064).