mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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'] );
|
||||
|
||||
Reference in New Issue
Block a user