From 117be6ae196b0fbde99a7766308d199f341bc3c5 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 16 Dec 2010 08:48:16 +0000 Subject: [PATCH] Move check_permissions() out of ajax_response(). see #15326. git-svn-id: http://svn.automattic.com/wordpress/trunk@16991 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 1 + wp-admin/includes/class-wp-list-table.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index cef3981ce8..ce3a5be42b 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -61,6 +61,7 @@ case 'fetch-list' : if ( ! $wp_list_table ) die( '0' ); + $wp_list_table->check_permissions(); $wp_list_table->ajax_response(); die( '0' ); diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 895f54cb34..96ef18136c 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -816,7 +816,6 @@ class WP_List_Table { * @access public */ function ajax_response() { - $this->check_permissions(); $this->prepare_items(); extract( $this->_args );