mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
List Tables: Define the global $mode variable for Quick Edit savings.
Also remove two unused global imports for `$mode`. Fixes #34577. git-svn-id: https://develop.svn.wordpress.org/trunk@35518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -490,7 +490,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
* list table.
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
*
|
||||
* @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
|
||||
*/
|
||||
do_action( 'manage_posts_extra_tablenav', $which );
|
||||
@@ -507,16 +507,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
return parent::current_action();
|
||||
}
|
||||
|
||||
/**
|
||||
* @global string $mode
|
||||
* @param string $which
|
||||
*/
|
||||
protected function pagination( $which ) {
|
||||
global $mode;
|
||||
|
||||
parent::pagination( $which );
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return array
|
||||
@@ -647,13 +637,10 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
/**
|
||||
* @global string $mode
|
||||
* @param array $posts
|
||||
* @param int $level
|
||||
*/
|
||||
private function _display_rows( $posts, $level = 0 ) {
|
||||
global $mode;
|
||||
|
||||
// Create array of post IDs.
|
||||
$post_ids = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user