Make WordPress Core

Changeset 36828


Ignore:
Timestamp:
03/03/2016 09:50:57 AM (11 years ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r36560 r36828  
    7979
    8080                /**
    81                  * Filter the full array of plugins to list in the Plugins list table.
     81                 * Filters the full array of plugins to list in the Plugins list table.
    8282                 *
    8383                 * @since 3.0.0
     
    8585                 * @see get_plugins()
    8686                 *
    87                  * @param array $plugins An array of plugins to display in the list table.
     87                 * @param array $all_plugins An array of plugins to display in the list table.
    8888                 */
     89                $all_plugins = apply_filters( 'all_plugins', get_plugins() );
     90
    8991                $plugins = array(
    90                         'all' => apply_filters( 'all_plugins', get_plugins() ),
    91                         'search' => array(),
    92                         'active' => array(),
    93                         'inactive' => array(),
     92                        'all'                => $all_plugins,
     93                        'search'             => array(),
     94                        'active'             => array(),
     95                        'inactive'           => array(),
    9496                        'recently_activated' => array(),
    95                         'upgrade' => array(),
    96                         'mustuse' => array(),
    97                         'dropins' => array()
     97                        'upgrade'            => array(),
     98                        'mustuse'            => array(),
     99                        'dropins'            => array(),
    98100                );
    99101
Note: See TracChangeset for help on using the changeset viewer.