Make WordPress Core

Ticket #12867: 12867.2.diff

File 12867.2.diff, 1.8 KB (added by duck_, 15 years ago)
  • wp-admin/edit-form-advanced.php

     
    172172<input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
    173173<input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr($post_type) ?>" />
    174174<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr($post->post_status) ?>" />
    175 <input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
     175<input type="hidden" id="referredby" name="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
    176176<?php
    177177if ( 'draft' != $post->post_status )
    178178        wp_original_referer_field(true, 'previous');
    179179
    180 echo $form_extra ?>
     180echo $form_extra;
    181181
     182wp_nonce_field( 'autosave', 'autosavenonce', false );
     183wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
     184wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
     185?>
     186
    182187<div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
    183188<div id="side-info-column" class="inner-sidebar">
    184189
     
    214219}
    215220?>
    216221</div>
     222<?php
     223wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
     224?>
    217225</div>
    218226<?php } ?>
    219227
     
    240248        </td>
    241249</tr></tbody></table>
    242250
    243 <?php
    244 wp_nonce_field( 'autosave', 'autosavenonce', false );
    245 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
    246 wp_nonce_field( 'getpermalink', 'getpermalinknonce', false );
    247 wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
    248 wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
    249251</div>
    250252
    251253<?php