Ticket #2488: publish-checked.diff
File publish-checked.diff, 2.5 KB (added by , 19 years ago) |
---|
-
wp-admin/edit-form-advanced.php
99 99 <fieldset class="dbx-box"> 100 100 <h3 class="dbx-handle"><?php _e('Post Status') ?></h3> 101 101 <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> 103 103 <?php endif; ?> 104 104 <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> 105 105 <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> -
wp-admin/edit-page-form.php
58 58 <fieldset class="dbx-box"> 59 59 <h3 class="dbx-handle"><?php _e('Page Status') ?></h3> 60 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>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> 62 62 <?php endif; ?> 63 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 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>