Minor cleanups. See #14579

git-svn-id: https://develop.svn.wordpress.org/trunk@16190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-11-04 18:28:58 +00:00
parent 6c266a561d
commit 3944269814
2 changed files with 2 additions and 4 deletions

View File

@ -20,8 +20,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
if ( $status != $default_status && 'search' != $status )
update_user_meta( get_current_user_id(), 'plugins_last_view', $status );
$page = $this->get_pagenum();
parent::WP_List_Table( array(
'plural' => 'plugins',
) );

View File

@ -2073,8 +2073,8 @@ function set_current_screen( $id = '' ) {
$current_screen->taxonomy = $taxnow;
}
$current_screen->is_network = is_network_admin() ? true : false;
$current_screen->is_user = is_user_admin() ? true : false;
$current_screen->is_network = is_network_admin();
$current_screen->is_user = is_user_admin();
if ( $current_screen->is_network ) {
$current_screen->base .= '-network';