Opened 20 months ago

Last modified 8 months ago

#18684 new enhancement

XMLRPC metaWeblog.newMediaObject doesn't have possibility for setting excerpt/content

Reported by: skithund Owned by:
Priority: normal Milestone: Awaiting Review
Component: XML-RPC Version: 3.2.1
Severity: normal Keywords: has-patch
Cc: josephscott

Description

XMLRPC metaWeblog.newMediaObject method only sets empty content for attachment and doesn't have possibility for setting excerpt and/or content for attachments.

Attachments (2)

newmediaobject.diff (836 bytes) - added by skithund 20 months ago.
Add possibility for setting post_excerpt and post_content
xmlrpc.diff (876 bytes) - added by josephscott 17 months ago.

Download all attachments as: .zip

Change History (6)

Add possibility for setting post_excerpt and post_content

  • Cc josephscott added
  • Keywords dev-feedback added

I've uploaded a diff that uses 'content' and 'description' for the field names. Those are the labels WP shows in wp-admin and those are the field names that wp.getMediaItem uses to expose the same data.

I'd like to get some extra review on this though. We want to make sure these fields can't be used to inject bad things by people how shouldn't be able to do that sort of thing.

  • Keywords dev-feedback removed

Looks good.

Should we be adding more things to non-WP methods? In that case, duplicate of #5461?

Note: See TracTickets for help on using tickets.