Ticket #13917 (assigned task (blessed))
wp.uploadFile cannot be attached to any post
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | XML-RPC | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch commit mobile |
| Cc: | ercoli@…, jbernal@… |
Description
wp.uploadFile from xmlrpc.php saves each upload as an unattached file.
I wanted to attach it to a post once uploaded but a option for this does not exist and the $post_id is given the value 0 before wp_insert_attachment inside the $attachment array.
I am happy to make this enhancement if needed and approved but I'm not sure what the protocol is as this is my first time in doing this.
Thanks, Ciprian Turcu
Attachments
Change History
- Component changed from General to XML-RPC
- Milestone changed from 3.0.1 to Future Release
comment:4
josephscott — 8 weeks ago
- Keywords commit added
I'm fine with this change. I've included an updated diff.
Note: See
TracTickets for help on using
tickets.

