Ticket #32497: 32497.diff
File 32497.diff, 1.4 KB (added by , 10 years ago) |
---|
-
wp-admin/includes/class-wp-plugins-list-table.php
28 28 ) ); 29 29 30 30 $status = 'all'; 31 if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], array( 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search' ) ) ) 31 /** 32 * Filter the array of plugin statuses 33 * 34 * @param array $plugins An array of the default plugin statuses 35 */ 36 $plugin_statuses = apply_filters( 'plugin_statuses', array( 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search' ) ); 37 38 if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], $plugin_statuses ) ) 32 39 $status = $_REQUEST['plugin_status']; 33 40 34 41 if ( isset($_REQUEST['s']) ) … … 165 172 $plugins['search'] = array_filter( $plugins['all'], array( $this, '_search_callback' ) ); 166 173 } 167 174 175 /** 176 * Filter the full array of plugins to list in the Plugins list table. 177 * 178 * @param array $plugins An array of plugins to display in the list table. 179 */ 180 $plugins = apply_filters( 'plugins_list_table', $plugins ); 181 error_log( print_r( $plugins, true ) ); 182 168 183 $totals = array(); 169 184 foreach ( $plugins as $type => $list ) 170 185 $totals[ $type ] = count( $list );