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:
parent
b11357a497
commit
bf698116e0
|
@ -163,7 +163,7 @@ function edit_post( $post_data = null ) {
|
||||||
if ( isset($post_data['visibility']) ) {
|
if ( isset($post_data['visibility']) ) {
|
||||||
switch ( $post_data['visibility'] ) {
|
switch ( $post_data['visibility'] ) {
|
||||||
case 'public' :
|
case 'public' :
|
||||||
unset( $post_data['post_password'] );
|
$post_data['post_password'] = '';
|
||||||
break;
|
break;
|
||||||
case 'password' :
|
case 'password' :
|
||||||
unset( $post_data['sticky'] );
|
unset( $post_data['sticky'] );
|
||||||
|
|
Loading…
Reference in New Issue