Make WordPress Core


Ignore:
Timestamp:
05/02/2006 10:36:06 PM (20 years ago)
Author:
ryan
Message:

Nonce from above. #2678

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r3664 r3759  
    2323    $temp_ID = -1 * time();
    2424    $form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
     25    wp_nonce_field('add-post');
    2526} else {
    2627    $form_action = 'editpost';
    2728    $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
     29    wp_nonce_field('update-post' .  $post_ID);
    2830}
    2931
     
    174176if (current_user_can('upload_files')) {
    175177    $uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID);
    176     $uploading_iframe_src = "inline-uploading.php?action=view&amp;post=$uploading_iframe_ID";
     178    $uploading_iframe_src = wp_nonce_url("inline-uploading.php?action=view&amp;post=$uploading_iframe_ID", 'inlineuploading');
    177179    $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
    178180    if ( false != $uploading_iframe_src )
Note: See TracChangeset for help on using the changeset viewer.