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:
Pascal Birchler 2016-03-03 09:50:57 +00:00
parent 94b2ed9303
commit 1178047725
1 changed files with 11 additions and 9 deletions

View File

@ -78,23 +78,25 @@ class WP_Plugins_List_Table extends WP_List_Table {
wp_reset_vars( array( 'orderby', 'order' ) ); 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 * @since 3.0.0
* *
* @see get_plugins() * @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( $plugins = array(
'all' => apply_filters( 'all_plugins', get_plugins() ), 'all' => $all_plugins,
'search' => array(), 'search' => array(),
'active' => array(), 'active' => array(),
'inactive' => array(), 'inactive' => array(),
'recently_activated' => array(), 'recently_activated' => array(),
'upgrade' => array(), 'upgrade' => array(),
'mustuse' => array(), 'mustuse' => array(),
'dropins' => array() 'dropins' => array(),
); );
$screen = $this->screen; $screen = $this->screen;