From 7b9137f7bfb35a5d5cc53fe6898c8b4fa3c7a6cf Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 27 Apr 2009 18:36:27 +0000 Subject: [PATCH] Add missing quotes for returned values in admin-ajax.php. Props Simek. fixes #9654 git-svn-id: http://svn.automattic.com/wordpress/trunk@11099 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index dcbd639f27..48d7beb5f6 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -133,7 +133,7 @@ function _wp_ajax_delete_comment_response( $comment_id ) { $per_page = (int) @$_POST['_per_page']; $page = (int) @$_POST['_page']; $url = clean_url( @$_POST['_url'], null, 'url' ); - // JS didn't send us everything we need to know. Just die with success message + // JS didn't send us everything we need to know. Just die with success message if ( !$total || !$per_page || !$page || !$url ) die( (string) time() ); @@ -975,10 +975,10 @@ case 'closed-postboxes' : $page = isset( $_POST['page'] ) ? $_POST['page'] : ''; if ( !preg_match( '/^[a-z_-]+$/', $page ) ) - die(-1); + die('-1'); if ( ! $user = wp_get_current_user() ) - die(-1); + die('-1'); if ( is_array($closed) ) update_usermeta($user->ID, 'closedpostboxes_'.$page, $closed); @@ -997,10 +997,10 @@ case 'hidden-columns' : $page = isset( $_POST['page'] ) ? $_POST['page'] : ''; if ( !preg_match( '/^[a-z_-]+$/', $page ) ) - die(-1); + die('-1'); if ( ! $user = wp_get_current_user() ) - die(-1); + die('-1'); if ( is_array($hidden) ) update_usermeta($user->ID, "manage-$page-columns-hidden", $hidden); @@ -1014,10 +1014,10 @@ case 'meta-box-order': $page = isset( $_POST['page'] ) ? $_POST['page'] : ''; if ( !preg_match( '/^[a-z_-]+$/', $page ) ) - die(-1); + die('-1'); if ( ! $user = wp_get_current_user() ) - die(-1); + die('-1'); if ( $order ) update_user_option($user->ID, "meta-box-order_$page", $order);