Changeset 11104 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 04/27/2009 11:09:08 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-form-advanced.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r10995 r11104 34 34 $form_action = 'post'; 35 35 $temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post() 36 $form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value=' $temp_ID' />";36 $form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='" . attr($temp_ID) . "' />"; 37 37 $autosave = false; 38 38 } else { 39 39 $form_action = 'editpost'; 40 $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value=' $post_ID' />";40 $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='" . attr($post_ID) . "' />"; 41 41 $autosave = wp_get_post_autosave( $post_ID ); 42 42 … … 73 73 <?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?> 74 74 <div style="display:none;"> 75 <input type="submit" name="save" value="<?php echo attribute_escape( __('Save')); ?>" />75 <input type="submit" name="save" value="<?php _ea('Save'); ?>" /> 76 76 </div> 77 77 … … 79 79 <div id="save-action"> 80 80 <?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?> 81 <input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save Draft')); ?>" tabindex="4" class="button button-highlighted" />81 <input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php _ea('Save Draft'); ?>" tabindex="4" class="button button-highlighted" /> 82 82 <?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?> 83 <input type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save as Pending')); ?>" tabindex="4" class="button button-highlighted" />83 <input type="submit" name="save" id="save-post" value="<?php _ea('Save as Pending'); ?>" tabindex="4" class="button button-highlighted" /> 84 84 <?php } ?> 85 85 </div> … … 130 130 131 131 <div id="post-status-select" class="hide-if-js"> 132 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo $post->post_status; ?>" />132 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo attr($post->post_status); ?>" /> 133 133 <select name='post_status' id='post_status' tabindex='4'> 134 134 <?php if ( 'publish' == $post->post_status ) : ?> … … 239 239 <?php if ( current_user_can('publish_posts') ) : ?> 240 240 <?php if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> 241 <input name="original_publish" type="hidden" id="original_publish" value="<?php _e ('Schedule') ?>" />242 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e ('Schedule') ?>" />241 <input name="original_publish" type="hidden" id="original_publish" value="<?php _ea('Schedule') ?>" /> 242 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _ea('Schedule') ?>" /> 243 243 <?php else : ?> 244 <input name="original_publish" type="hidden" id="original_publish" value="<?php _e ('Publish') ?>" />245 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e ('Publish') ?>" />244 <input name="original_publish" type="hidden" id="original_publish" value="<?php _ea('Publish') ?>" /> 245 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _ea('Publish') ?>" /> 246 246 <?php endif; ?> 247 247 <?php else : ?> 248 <input name="original_publish" type="hidden" id="original_publish" value="<?php _e ('Submit for Review') ?>" />249 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e ('Submit for Review') ?>" />248 <input name="original_publish" type="hidden" id="original_publish" value="<?php _ea('Submit for Review') ?>" /> 249 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _ea('Submit for Review') ?>" /> 250 250 <?php endif; ?> 251 251 <?php } else { ?> 252 <input name="original_publish" type="hidden" id="original_publish" value="<?php _e ('Update Post') ?>" />253 <input name="save" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e ('Update Post') ?>" />252 <input name="original_publish" type="hidden" id="original_publish" value="<?php _ea('Update Post') ?>" /> 253 <input name="save" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _ea('Update Post') ?>" /> 254 254 <?php } ?> 255 255 </div> … … 277 277 <p class="jaxtag"> 278 278 <label class="hidden" for="newtag"><?php _e( $box['title'] ); ?></label> 279 <input type="hidden" name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" value="<?php echo get_terms_to_edit( $post->ID, $tax_name); ?>" />279 <input type="hidden" name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" value="<?php echo attr(get_terms_to_edit( $post->ID, $tax_name )); ?>" /> 280 280 281 281 <span class="ajaxtag"> 282 <input type="text" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _e ('Add new tag'); ?>" />283 <input type="button" class="button tagadd" value="<?php _e ('Add'); ?>" tabindex="3" />282 <input type="text" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" /> 283 <input type="button" class="button tagadd" value="<?php _ea('Add'); ?>" tabindex="3" /> 284 284 </span></p> 285 285 <p class="howto"><?php echo $helps; ?></p> … … 330 330 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4> 331 331 <p id="category-add" class="wp-hidden-child"> 332 <label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e ( 'New category name' ); ?>" tabindex="3" aria-required="true"/>332 <label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _ea( 'New category name' ); ?>" tabindex="3" aria-required="true"/> 333 333 <label class="hidden" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> 334 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e ( 'Add' ); ?>" tabindex="3" />334 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _ea( 'Add' ); ?>" tabindex="3" /> 335 335 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> 336 336 <span id="category-ajax-response"></span> … … 573 573 574 574 <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" /> 575 <input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action?>" />576 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action?>" />575 <input type="hidden" id="hiddenaction" name="action" value="<?php echo attr($form_action) ?>" /> 576 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo attr($form_action) ?>" /> 577 577 <input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" /> 578 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type?>" />579 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status?>" />578 <input type="hidden" id="post_type" name="post_type" value="<?php echo attr($post->post_type) ?>" /> 579 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo attr($post->post_status) ?>" /> 580 580 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" /> 581 581 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
Note: See TracChangeset
for help on using the changeset viewer.