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/meta-boxes.php

    r14931 r14933  
    337337                    <?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax->labels->parent_item . ' &mdash;', 'tab_index' => 3 ) ); ?>
    338338                    <input type="button" id="<?php echo $taxonomy; ?>-add-submit" class="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add button category-add-sumbit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" tabindex="3" />
    339                     <?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce', false ); ?>
     339                    <?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce-add-'.$taxonomy, false ); ?>
    340340                    <span id="<?php echo $taxonomy; ?>-ajax-response"></span>
    341341                </p>
Note: See TracChangeset for help on using the changeset viewer.