Changeset 12987 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 02/06/2010 10:07:57 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r12967 r12987 72 72 break; 73 73 case 'draft': 74 case 'auto-draft': 74 75 _e('Draft'); 76 break; 77 case 'auto-draft': 78 _e('Unsaved'); 75 79 break; 76 80 } … … 81 85 82 86 <div id="post-status-select" class="hide-if-js"> 83 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( $post->post_status); ?>" />87 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ('auto-draft' == $post->post_status ) ? 'draft' : $post->post_status); ?>" /> 84 88 <select name='post_status' id='post_status' tabindex='4'> 85 89 <?php if ( 'publish' == $post->post_status ) : ?> … … 91 95 <?php endif; ?> 92 96 <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option> 97 <?php if ( 'auto-draft' == $post->post_status ) : ?> 98 <option<?php selected( $post->post_status, 'auto-draft' ); ?> value='draft'><?php _e('Draft') ?></option> 99 <?php else : ?> 93 100 <option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Draft') ?></option> 101 <?php endif; ?> 94 102 </select> 95 103 <a href="#post_status" class="save-post-status hide-if-no-js button"><?php _e('OK'); ?></a>
Note: See TracChangeset
for help on using the changeset viewer.