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:
Mark Jaquith
2008-12-06 11:10:24 +00:00
parent ee9e57b97b
commit 9791e0dd60
6 changed files with 29 additions and 13 deletions
+1 -1
View File
@@ -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' ) ) ) {