Opened 14 years ago
Closed 14 years ago
#22544 closed defect (bug) (fixed)
Insert Media: Non-image attachments aren't inserted with a link
| Reported by: | ocean90 | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch commit dev-reviewed |
| Cc: | Focuses: |
Description
- Upload a PDF file
- Select
Linkt toand use one of the options, for exampleMedia File - Click
Insert into post
Only the title will be inserted, the link around the text is missing.
Attachments (1)
Change History (8)
#2
@
14 years ago
- Keywords has-patch added; needs-patch removed
Define $_POST['url'] for non-image attachments in wp.media.editor.send.attachment().
#3
@
14 years ago
Looking at this, I think we should go back to the old field names used by media_upload_form_handler() — align, image_alt, image-size, post_excerpt, post_title. Here's a patch that does that while fixing both this ticket and #22553.
Sidenote: $_POST['attachment']['url'], not $_POST['url'].
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Confirmed.