Make WordPress Core

Ticket #12867: 12867.diff

File 12867.diff, 844 bytes (added by duck_, 15 years ago)

Move nonce fields out of conditional

  • wp-admin/edit-form-advanced.php

     
    240240        </td>
    241241</tr></tbody></table>
    242242
     243</div>
    243244<?php
     245}
    244246wp_nonce_field( 'autosave', 'autosavenonce', false );
    245247wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
    246248wp_nonce_field( 'getpermalink', 'getpermalinknonce', false );
    247249wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
    248 wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
    249 </div>
     250wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
    250251
    251 <?php
    252 }
    253 
    254252do_meta_boxes($post_type, 'normal', $post);
    255253
    256254( 'page' == $post_type ) ? do_action('edit_page_form') : do_action('edit_form_advanced');