From d34290a6050a12dcdb6b1fb27e529236422c79f8 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Mon, 1 Nov 2010 08:43:24 +0000 Subject: [PATCH] Correct the subdomain/non-subdomain logic when listing sites. Tidy up the case statement. See #15174. git-svn-id: https://develop.svn.wordpress.org/trunk@16126 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/list-table-sites.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/list-table-sites.php b/wp-admin/includes/list-table-sites.php index bbc3d2a584..1f7198de6b 100644 --- a/wp-admin/includes/list-table-sites.php +++ b/wp-admin/includes/list-table-sites.php @@ -158,8 +158,8 @@ class WP_Sites_Table extends WP_List_Table { } echo ""; - $blogname = ( is_subdomain_install() ) ? str_replace( '.'.$current_site->domain, '', $blog['domain'] ) : $blog['path']; - + $blogname = ( is_subdomain_install() ) ? $blog['path'] : str_replace( '.'.$current_site->domain, '', $blog['domain'] ); + list( $columns, $hidden ) = $this->get_column_info(); foreach ( $columns as $column_name => $column_display_name ) { @@ -244,9 +244,9 @@ class WP_Sites_Table extends WP_List_Table { echo mysql2date( $date, $blog['registered'] ); ?> - + $blog['blog_id'], 'number' => 6) ); @@ -270,7 +270,7 @@ class WP_Sites_Table extends WP_List_Table { + case 'plugins': ?> @@ -278,7 +278,7 @@ class WP_Sites_Table extends WP_List_Table { + default: ?>