Make WordPress Core


Ignore:
Timestamp:
02/09/2006 10:03:48 AM (18 years ago)
Author:
ryan
Message:

Allow draft pages. Use post_type for object types. Reserve post_status strictly for status. fixes #1820

File:
1 edited

Legend:

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

    r3456 r3510  
    3131<input type="hidden" name="action" value='<?php echo $form_action ?>' />
    3232<?php echo $form_extra ?>
    33 <input type="hidden" name="post_status" value="static" />
     33<input type="hidden" name="post_type" value="page" />
    3434
    3535<script type="text/javascript">
     
    5454<label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label>
    5555</div>
     56</fieldset>
     57
     58<fieldset class="dbx-box">
     59<h3 class="dbx-handle"><?php _e('Page Status') ?></h3>
     60<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>
     62<?php endif; ?>
     63      <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>
     64      <label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="radio" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Private') ?></label></div>
    5665</fieldset>
    5766
Note: See TracChangeset for help on using the changeset viewer.