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. Built from https://develop.svn.wordpress.org/trunk@36828 git-svn-id: http://core.svn.wordpress.org/trunk@36795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
52c901d983
commit
05c069272f
|
@ -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;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-beta2-36827';
|
$wp_version = '4.5-beta2-36828';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue