Make WordPress Core

Changeset 3560


Ignore:
Timestamp:
02/20/2006 09:00:19 PM (19 years ago)
Author:
ryan
Message:

Check Published for future posts. fixes #2488

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r3510 r3560  
    100100<h3 class="dbx-handle"><?php _e('Post Status') ?></h3>
    101101<div class="dbx-content"><?php if ( current_user_can('publish_posts') ) : ?>
    102 <label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); ?> /> <?php _e('Published') ?></label>
     102<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); checked($post->post_status, 'future'); ?> /> <?php _e('Published') ?></label>
    103103<?php endif; ?>
    104104      <label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post->post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
  • trunk/wp-admin/edit-page-form.php

    r3550 r3560  
    5959<h3 class="dbx-handle"><?php _e('Page Status') ?></h3>
    6060<div class="dbx-content"><?php if ( current_user_can('publish_posts') ) : ?>
    61 <label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); ?> /> <?php _e('Published') ?></label>
     61<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); checked($post->post_status, 'future'; ?> /> <?php _e('Published') ?></label>
    6262<?php endif; ?>
    6363      <label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post->post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
Note: See TracChangeset for help on using the changeset viewer.