mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Make Password protected and private mutually exclusive when using Quick Edit.
git-svn-id: https://develop.svn.wordpress.org/trunk@10088 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1422,7 +1422,7 @@ function wp_insert_post($postarr = array(), $wp_error = false) {
|
||||
else
|
||||
$menu_order = 0;
|
||||
|
||||
if ( !isset($post_password) )
|
||||
if ( !isset($post_password) || 'private' == $post_status )
|
||||
$post_password = '';
|
||||
|
||||
if ( !in_array( $post_status, array( 'draft', 'pending' ) ) ) {
|
||||
|
||||
Reference in New Issue
Block a user