Changeset 7376 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 03/18/2008 04:59:54 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r7375 r7376 521 521 wp_set_post_lock( $id ); 522 522 523 if ( $nonce_age == 2 ) 523 if ( $nonce_age == 2 ) { 524 524 $supplemental['replace-autosavenonce'] = wp_create_nonce('autosave'); 525 $supplemental['replace-getpermalinknonce'] = wp_create_nonce('getpermalink'); 526 $supplemental['replace-samplepermalinknonce'] = wp_create_nonce('samplepermalink'); 527 $supplemental['replace-closedpostboxesnonce'] = wp_create_nonce('closedpostboxes'); 528 if ( $id ) { 529 if ( $_POST['post_type'] == 'post' ) 530 $supplemental['replace-_wpnonce'] = wp_create_nonce('update-post_' . $id); 531 elseif ( $_POST['post_type'] == 'page' ) 532 $supplemental['replace-_wpnonce'] = wp_create_nonce('update-page_' . $id); 533 } 534 } 525 535 526 536 $x = new WP_Ajax_Response( array(
Note: See TracChangeset
for help on using the changeset viewer.