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:
parent
afecafe7ab
commit
8661cbc56e
@ -61,6 +61,7 @@ case 'fetch-list' :
|
|||||||
if ( ! $wp_list_table )
|
if ( ! $wp_list_table )
|
||||||
die( '0' );
|
die( '0' );
|
||||||
|
|
||||||
|
$wp_list_table->check_permissions();
|
||||||
$wp_list_table->ajax_response();
|
$wp_list_table->ajax_response();
|
||||||
|
|
||||||
die( '0' );
|
die( '0' );
|
||||||
|
@ -816,7 +816,6 @@ class WP_List_Table {
|
|||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function ajax_response() {
|
function ajax_response() {
|
||||||
$this->check_permissions();
|
|
||||||
$this->prepare_items();
|
$this->prepare_items();
|
||||||
|
|
||||||
extract( $this->_args );
|
extract( $this->_args );
|
||||||
|
Loading…
Reference in New Issue
Block a user