Collapse crazyhorse to trunk. Incoming! see #7552

git-svn-id: https://develop.svn.wordpress.org/trunk@8691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-08-20 21:42:31 +00:00
parent 2f3d21476b
commit 6db75e59d4
62 changed files with 2541 additions and 1122 deletions
+6 -1
View File
@@ -182,7 +182,7 @@ case 'dim-comment' :
if ( $_POST['new'] == $current )
die('1');
if ( 'unapproved' == $current ) {
if ( in_array( $current, array( 'unapproved', 'spam' ) ) ) {
check_ajax_referer( "approve-comment_$id" );
if ( wp_set_comment_status( $comment->comment_ID, 'approve' ) )
die('1');
@@ -648,6 +648,11 @@ case 'sample-permalink':
$slug = isset($_POST['new_slug'])? $_POST['new_slug'] : '';
die(get_sample_permalink_html($post_id, $title, $slug));
break;
case 'meta-box-order':
check_ajax_referer( 'meta-box-order' );
update_user_option( $GLOBALS['current_user']->ID, "meta-box-order_$_POST[page]", $_POST['order'] );
die('1');
break;
default :
do_action( 'wp_ajax_' . $_POST['action'] );
die('0');