Changeset 8691 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 08/20/2008 09:42:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r8618 r8691 183 183 die('1'); 184 184 185 if ( 'unapproved' == $current) {185 if ( in_array( $current, array( 'unapproved', 'spam' ) ) ) { 186 186 check_ajax_referer( "approve-comment_$id" ); 187 187 if ( wp_set_comment_status( $comment->comment_ID, 'approve' ) ) … … 649 649 die(get_sample_permalink_html($post_id, $title, $slug)); 650 650 break; 651 case 'meta-box-order': 652 check_ajax_referer( 'meta-box-order' ); 653 update_user_option( $GLOBALS['current_user']->ID, "meta-box-order_$_POST[page]", $_POST['order'] ); 654 die('1'); 655 break; 651 656 default : 652 657 do_action( 'wp_ajax_' . $_POST['action'] );
Note: See TracChangeset
for help on using the changeset viewer.