Make WordPress Core

Changeset 6625


Ignore:
Timestamp:
01/16/2008 09:18:15 AM (17 years ago)
Author:
ryan
Message:

Fix typo and clean up ternary logic. Props fitzrev. fixes #5677

File:
1 edited

Legend:

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

    r6624 r6625  
    9898<select name='post_status'>
    9999<?php if ( current_user_can('publish_posts') ) : ?>
    100 <?php ( 'private' == $post-post_status ) ? $pub_value = 'private' : $pub_value = 'publish'; ?>
     100<?php $pub_value = ( 'private' == $post->post_status ) ? 'private' : 'publish'; ?>
    101101<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option>
    102102<?php else: ?>
Note: See TracChangeset for help on using the changeset viewer.