[wp-trac] [WordPress Trac] #27795: Contributor Role unable to 'Save Draft' posts
WordPress Trac
noreply at wordpress.org
Mon Apr 14 11:56:11 UTC 2014
#27795: Contributor Role unable to 'Save Draft' posts
-------------------------------+-----------------------------
Reporter: stylemo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.8.3
Component: Posts, Post Types | Version: 3.8.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
-------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* keywords: => has-patch
Comment:
Appears to be triggered by [27976]. [28073] fixed `edit_post()`, but not
`_wp_translate_postdata()`.
In trunk, we have (since [27405]):
{{{
if ( ! isset( $post_data['post_status'] ) ) {
$post_data['post_status'] = 'auto-draft' === $previous_status ?
'draft' : $previous_status;
}
}}}
In 3.8 and 3.7 branches, it's:
{{{
if ( ! isset($post_data['post_status']) ) {
$post_data['post_status'] = $previous_status;
}}}
[attachment:27795.patch] fixes this for me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27795#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list