From c75430c4856d2de4b639ff1cf98e8c8150fba481 Mon Sep 17 00:00:00 2001 From: scribu Date: Sun, 31 Oct 2010 11:38:04 +0000 Subject: [PATCH] remove redundant 'Network ' prefix from action names and redundant display_tablenav() method. See #14897 git-svn-id: https://develop.svn.wordpress.org/trunk@16117 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/list-table-ms-themes.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/wp-admin/includes/list-table-ms-themes.php b/wp-admin/includes/list-table-ms-themes.php index ea7cbf009e..0ee7751368 100644 --- a/wp-admin/includes/list-table-ms-themes.php +++ b/wp-admin/includes/list-table-ms-themes.php @@ -161,12 +161,6 @@ class WP_MS_Themes_Table extends WP_List_Table { ); } - function display_tablenav( $which ) { - global $status; - - parent::display_tablenav( $which ); - } - function get_views() { global $totals, $status; @@ -208,9 +202,9 @@ class WP_MS_Themes_Table extends WP_List_Table { $actions = array(); if ( 'enabled' != $status ) - $actions['network-enable-selected'] = __( 'Network Enable' ); + $actions['network-enable-selected'] = __( 'Enable' ); if ( 'disabled' != $status ) - $actions['network-disable-selected'] = __( 'Network Disable' ); + $actions['network-disable-selected'] = __( 'Disable' ); if ( current_user_can( 'update_themes' ) ) $actions['update-selected'] = __( 'Update' ); @@ -243,10 +237,10 @@ class WP_MS_Themes_Table extends WP_List_Table { if ( empty( $theme['enabled'] ) ) { if ( current_user_can( 'manage_network_themes' ) ) - $actions['network_enable'] = '' . __('Network Enable') . ''; + $actions['network_enable'] = '' . __('Enable') . ''; } else { if ( current_user_can( 'manage_network_themes' ) ) - $actions['network_disable'] = '' . __('Network Disable') . ''; + $actions['network_disable'] = '' . __('Disable') . ''; } /* @todo link to theme editor @@ -302,4 +296,4 @@ class WP_MS_Themes_Table extends WP_List_Table { } } } -?> \ No newline at end of file +?>