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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-12-07 09:04:11 +00:00
parent b11357a497
commit bf698116e0
1 changed files with 1 additions and 1 deletions

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'] );