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:
parent
9c43e7304e
commit
6a21085e62
@ -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'] );
|
||||
|
Loading…
Reference in New Issue
Block a user