[wp-trac] [WordPress Trac] #13917: wp.uploadFile cannot be attached to any post

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 1 15:47:16 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):

 I disagree with that. low level API's shouldn't have a lot of checks. Same
 that wp_insert_post doesn't do a lot of capability checking.

 I do have to say I'm not sure if checking if a post type is public is a
 the good way of doing that.
 I guess also in terms of permission checking it also is weird handeld.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13917#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list