Make WordPress Core


Ignore:
Timestamp:
08/20/2008 09:42:31 PM (16 years ago)
Author:
ryan
Message:

Collapse crazyhorse to trunk. Incoming! see #7552

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r8618 r8691  
    183183        die('1');
    184184
    185     if ( 'unapproved' == $current ) {
     185    if ( in_array( $current, array( 'unapproved', 'spam' ) ) ) {
    186186        check_ajax_referer( "approve-comment_$id" );
    187187        if ( wp_set_comment_status( $comment->comment_ID, 'approve' ) )
     
    649649    die(get_sample_permalink_html($post_id, $title, $slug));
    650650break;
     651case '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;
    651656default :
    652657    do_action( 'wp_ajax_' . $_POST['action'] );
Note: See TracChangeset for help on using the changeset viewer.