[wp-trac] [WordPress Trac] #22335: XML-RPC: attach_uploads does not set post_status 'inherit'
WordPress Trac
noreply at wordpress.org
Wed Oct 31 18:24:20 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):
Ok.
I thought the only thing to do is to add...
{{{
case 'inherit':
}}}
... to...
{{{
switch( $content_struct["{$post_type}_status"] ) {
case 'draft':
case 'pending':
case 'private':
case 'publish':
$post_status = $content_struct["{$post_type}_status"];
break;
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22335#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list