Add @global annotations for wp-admin/*.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-05-28 21:40:27 +00:00
parent 5f8df2290f
commit 23ce2efd12
61 changed files with 703 additions and 37 deletions

View File

@@ -17,6 +17,9 @@ class WP_Plugins_List_Table extends WP_List_Table {
*
* @see WP_List_Table::__construct() for more information on default arguments.
*
* @global string $status
* @global int $page
*
* @param array $args An associative array of arguments.
*/
public function __construct( $args = array() ) {
@@ -45,6 +48,16 @@ class WP_Plugins_List_Table extends WP_List_Table {
return current_user_can('activate_plugins');
}
/**
*
* @global string $status
* @global type $plugins
* @global array $totals
* @global int $page
* @global string $orderby
* @global string $order
* @global string $s
*/
public function prepare_items() {
global $status, $plugins, $totals, $page, $orderby, $order, $s;
@@ -241,6 +254,10 @@ class WP_Plugins_List_Table extends WP_List_Table {
return ( $a < $b ) ? -1 : 1;
}
/**
*
* @global array $plugins
*/
public function no_items() {
global $plugins;
@@ -250,6 +267,11 @@ class WP_Plugins_List_Table extends WP_List_Table {
_e( 'You do not appear to have any plugins available at this time.' );
}
/**
*
* @global string $status
* @return array
*/
public function get_columns() {
global $status;
@@ -264,6 +286,12 @@ class WP_Plugins_List_Table extends WP_List_Table {
return array();
}
/**
*
* @global array $totals
* @global string $status
* @return array
*/
protected function get_views() {
global $totals, $status;
@@ -308,6 +336,11 @@ class WP_Plugins_List_Table extends WP_List_Table {
return $status_links;
}
/**
*
* @global string $status
* @return array
*/
protected function get_bulk_actions() {
global $status;
@@ -373,6 +406,10 @@ class WP_Plugins_List_Table extends WP_List_Table {
return parent::current_action();
}
/**
*
* @global string $status
*/
public function display_rows() {
global $status;