mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Docs: Move the hook doc for the all_plugins filter in WP_Plugins_List_Table::prepare_items() to directly precede the apply_filters() line.
See #35986. git-svn-id: https://develop.svn.wordpress.org/trunk@36828 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -78,23 +78,25 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
wp_reset_vars( array( 'orderby', 'order' ) );
|
||||
|
||||
/**
|
||||
* Filter the full array of plugins to list in the Plugins list table.
|
||||
* Filters the full array of plugins to list in the Plugins list table.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @see get_plugins()
|
||||
*
|
||||
* @param array $plugins An array of plugins to display in the list table.
|
||||
* @param array $all_plugins An array of plugins to display in the list table.
|
||||
*/
|
||||
$all_plugins = apply_filters( 'all_plugins', get_plugins() );
|
||||
|
||||
$plugins = array(
|
||||
'all' => apply_filters( 'all_plugins', get_plugins() ),
|
||||
'search' => array(),
|
||||
'active' => array(),
|
||||
'inactive' => array(),
|
||||
'all' => $all_plugins,
|
||||
'search' => array(),
|
||||
'active' => array(),
|
||||
'inactive' => array(),
|
||||
'recently_activated' => array(),
|
||||
'upgrade' => array(),
|
||||
'mustuse' => array(),
|
||||
'dropins' => array()
|
||||
'upgrade' => array(),
|
||||
'mustuse' => array(),
|
||||
'dropins' => array(),
|
||||
);
|
||||
|
||||
$screen = $this->screen;
|
||||
|
||||
Reference in New Issue
Block a user