Make WordPress Core


Ignore:
Timestamp:
12/06/2008 11:10:24 AM (17 years ago)
Author:
markjaquith
Message:

Make Password protected and private mutually exclusive when using Quick Edit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r9956 r10088  
    147147<?php _e('Visibility:'); ?> <b><span id="post-visibility-display"><?php
    148148
    149 if ( !empty( $post->post_password ) ) {
     149if ( 'private' == $post->post_status ) {
     150    $post->post_password = '';
     151    $visibility = 'private';
     152    $visibility_trans = __('Private');
     153} elseif ( !empty( $post->post_password ) ) {
    150154    $visibility = 'password';
    151155    $visibility_trans = __('Password protected');
    152 } elseif ( 'private' == $post->post_status ) {
    153     $visibility = 'private';
    154     $visibility_trans = __('Private');
    155156} elseif ( is_sticky( $post->ID ) ) {
    156157    $visibility = 'public';
Note: See TracChangeset for help on using the changeset viewer.