From 8661cbc56eff9895093e1bdff8db3f38e893c579 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 16 Dec 2010 08:48:16 +0000 Subject: [PATCH] Move check_permissions() out of ajax_response(). see #15326. git-svn-id: https://develop.svn.wordpress.org/trunk@16991 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 );