Move check_permissions() out of ajax_response(). see #15326.

git-svn-id: https://develop.svn.wordpress.org/trunk@16991 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-16 08:48:16 +00:00
parent afecafe7ab
commit 8661cbc56e
2 changed files with 1 additions and 1 deletions

View File

@ -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' );

View File

@ -816,7 +816,6 @@ class WP_List_Table {
* @access public
*/
function ajax_response() {
$this->check_permissions();
$this->prepare_items();
extract( $this->_args );