Need to blank the password when visibility is public, not unset() it

git-svn-id: https://develop.svn.wordpress.org/trunk@10106 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-12-07 09:04:11 +00:00
parent 9c43e7304e
commit 6a21085e62

View File

@ -163,7 +163,7 @@ function edit_post( $post_data = null ) {
if ( isset($post_data['visibility']) ) {
switch ( $post_data['visibility'] ) {
case 'public' :
unset( $post_data['post_password'] );
$post_data['post_password'] = '';
break;
case 'password' :
unset( $post_data['sticky'] );