[wp-trac] [WordPress Trac] #22335: XML-RPC: attach_uploads does not set post_status 'inherit'

WordPress Trac noreply at wordpress.org
Wed Oct 31 17:59:00 UTC 2012


#22335: XML-RPC: attach_uploads does not set post_status 'inherit'
--------------------------+------------------------------
 Reporter:  DaEnno        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by DaEnno):

 ''The default "post_status" isn't draft but inherit.''

 Ok, sorry for mistaking. But does that make sense? It inherits from...
 what?

 ''It seems you edit the image through wp.editPost and that this can be the
 reason of post status change.''

 Yes, I do. I have to set ''post_excerpt'' and ''post_content'' manually
 since I can't send all the data needed when executing ''wp.uploadFile''.
 Nevertheless don't you think it's weird this makes the image ''draft''
 instead of ''inherit''?

 ''Also attach_uploads shouldn't really care about post_status and what it
 is.''

 I thought ''attach_uploads'' is responsible for making images children of
 a post. That's why an ''post_status'' of ''inherit'' makes sense to me.

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


More information about the wp-trac mailing list