From 6a21085e629c48caf1bcf7e4c8dc5c915461dfc5 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sun, 7 Dec 2008 09:04:11 +0000 Subject: [PATCH] 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 --- wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index fd2482c4ef..ae6cbfbba3 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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'] );