Ticket #13917 (assigned task (blessed))

Opened 21 months ago

Last modified 10 days ago

wp.uploadFile cannot be attached to any post

Reported by: ciprian_vb Owned by: josephscott
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

xmlrpc.diff Download (362 bytes) - added by djzone 20 months ago.
xmlrpc.2.diff Download (497 bytes) - added by josephscott 8 weeks ago.

Change History

  • Component changed from General to XML-RPC
  • Milestone changed from 3.0.1 to Future Release
  • Keywords has-patch added
  • Owner set to josephscott
  • Status changed from new to assigned
  • Keywords commit added

I'm fine with this change. I've included an updated diff.

Updated diff looks good.

  • Cc ercoli@… added
  • Type changed from enhancement to task (blessed)

comment:8   koke10 days ago

  • Cc jbernal@… added
  • Keywords mobile added
Note: See TracTickets for help on using tickets.