From 9ad4ce2511b1c8fa6a81f11759326cac40a13608 Mon Sep 17 00:00:00 2001 From: Pete Mall Date: Thu, 2 Dec 2010 23:49:18 +0000 Subject: [PATCH] s/Enable/Network Enable for net admin themes. Fixes #14897 git-svn-id: https://develop.svn.wordpress.org/trunk@16700 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-ms-themes-list-table.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index e66da6aff5..5d36f42ecf 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -232,9 +232,9 @@ class WP_MS_Themes_List_Table extends WP_List_Table { $actions = array(); if ( 'enabled' != $status ) - $actions['enable-selected'] = __( 'Enable' ); + $actions['enable-selected'] = $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ); if ( 'disabled' != $status ) - $actions['disable-selected'] = __( 'Disable' ); + $actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ); if ( current_user_can( 'update_themes' ) && !$this->is_site_themes ) $actions['update-selected'] = __( 'Update' ); @@ -275,9 +275,9 @@ class WP_MS_Themes_List_Table extends WP_List_Table { $theme_key = esc_html( $theme['Stylesheet'] ); if ( empty( $theme['enabled'] ) ) - $actions['enable'] = '' . __('Enable') . ''; + $actions['enable'] = '' . ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) ) . ''; else - $actions['disable'] = '' . __('Disable') . ''; + $actions['disable'] = '' . ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) ) . ''; if ( current_user_can('edit_themes') ) $actions['edit'] = '' . __('Edit') . '';