[wp-trac] [WordPress Trac] #13917: wp.uploadFile cannot be attached to any post
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 1 14:48:55 UTC 2012
#13917: wp.uploadFile cannot be attached to any post
-------------------------------------+-----------------------------
Reporter: ciprian_vb | Owner: josephscott
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: Future Release
Component: XML-RPC | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch commit mobile |
-------------------------------------+-----------------------------
Comment (by markoheijnen):
How I see it is that wp_insert_attachment() is a low level API so there
are always checks needed. Same as for wp_insert_post.
So checking if it is allowed to do should be in the xmlrpc method. No clue
how it got handled in the backend. I do now from the user interface you
only can attach an image when the post type is a public one.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13917#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list