Make WordPress Core

Changeset 7120


Ignore:
Timestamp:
03/01/2008 06:26:13 AM (18 years ago)
Author:
ryan
Message:

Fix private post toggle

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r7103 r7120  
    9494<select name='post_status'>
    9595<?php if ( current_user_can('publish_posts') ) : ?>
    96 <?php $pub_value = ( 'private' == $post->post_status ) ? 'private' : 'publish'; ?>
    97 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option>
     96<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option>
    9897<?php else: ?>
    9998<option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>
  • trunk/wp-admin/edit-page-form.php

    r7103 r7120  
    7171<select name='post_status'>
    7272<?php if ( current_user_can('publish_posts') ) : ?>
    73 <?php $pub_value = ( 'private' == $post->post_status ) ? 'private' : 'publish'; ?>
    74 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option>
     73<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option>
    7574<?php else: ?>
    7675<option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>
Note: See TracChangeset for help on using the changeset viewer.