Changeset 18811
- Timestamp:
- 09/29/2011 05:54:05 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-plugins-list-table.php
r18319 r18811 13 13 global $status, $page; 14 14 15 $default_status = get_user_option( 'plugins_last_view' ); 16 if ( empty( $default_status ) ) 17 $default_status = 'all'; 18 $status = isset( $_REQUEST['plugin_status'] ) ? $_REQUEST['plugin_status'] : $default_status; 19 if ( !in_array( $status, array( 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'network', 'mustuse', 'dropins', 'search' ) ) ) 20 $status = 'all'; 21 if ( $status != $default_status && 'search' != $status ) 22 update_user_meta( get_current_user_id(), 'plugins_last_view', $status ); 23 15 $status = 'all'; 16 if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], array( 'active', 'inactive', 'recently_activated', 'upgrade', 'network', 'mustuse', 'dropins', 'search' ) ) ) 17 $status = $_REQUEST['plugin_status']; 24 18 25 19 if ( isset($_REQUEST['s']) )
Note: See TracChangeset
for help on using the changeset viewer.