Make WordPress Core


Ignore:
Timestamp:
05/26/2010 04:55:21 AM (15 years ago)
Author:
nacin
Message:

Separate out multiple _ajax_nonce fields on post forms. Yay, validation. fixes #13383.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r14929 r14933  
    22872287    <input type="hidden" name="checkbox" id="checkbox" value="<?php echo $checkbox ? 1 : 0; ?>" />
    22882288    <input type="hidden" name="mode" id="mode" value="<?php echo esc_attr($mode); ?>" />
    2289     <?php wp_nonce_field( 'replyto-comment', '_ajax_nonce', false ); ?>
     2289    <?php wp_nonce_field( 'replyto-comment', '_ajax_nonce-replyto-comment', false ); ?>
    22902290    <?php wp_comment_form_unfiltered_html_nonce(); ?>
    22912291<?php if ( $table_row ) : ?>
     
    24632463<tr><td colspan="2" class="submit">
    24642464<input type="submit" id="addmetasub" name="addmeta" class="add:the-list:newmeta" tabindex="9" value="<?php esc_attr_e( 'Add Custom Field' ) ?>" />
    2465 <?php wp_nonce_field( 'add-meta', '_ajax_nonce', false ); ?>
     2465<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
    24662466</td></tr>
    24672467</tbody>
Note: See TracChangeset for help on using the changeset viewer.