Changeset 14933 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 05/26/2010 04:55:21 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r14886 r14933 219 219 $action = $_POST['action']; 220 220 $taxonomy = get_taxonomy(substr($action, 4)); 221 check_ajax_referer( $action );221 check_ajax_referer( $action, '_ajax_nonce-add-' . $taxonomy->name ); 222 222 if ( !current_user_can( $taxonomy->cap->edit_terms ) ) 223 223 die('-1'); … … 703 703 break; 704 704 case 'replyto-comment' : 705 check_ajax_referer( $action );705 check_ajax_referer( $action, '_ajax_nonce-replyto-comment' ); 706 706 707 707 $comment_post_ID = (int) $_POST['comment_post_ID']; … … 772 772 break; 773 773 case 'edit-comment' : 774 check_ajax_referer( 'replyto-comment' );774 check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' ); 775 775 776 776 $comment_post_ID = (int) $_POST['comment_post_ID']; … … 846 846 break; 847 847 case 'add-meta' : 848 check_ajax_referer( 'add-meta' );848 check_ajax_referer( 'add-meta', '_ajax_nonce-add-meta' ); 849 849 $c = 0; 850 850 $pid = (int) $_POST['post_id'];
Note: See TracChangeset
for help on using the changeset viewer.