Make WordPress Core


Ignore:
Timestamp:
12/07/2008 09:04:11 AM (17 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r10007 r10106  
    164164        switch ( $post_data['visibility'] ) {
    165165            case 'public' :
    166                 unset( $post_data['post_password'] );
     166                $post_data['post_password'] = '';
    167167                break;
    168168            case 'password' :
Note: See TracChangeset for help on using the changeset viewer.