From 034621a8d7339919fb1879e295d22d600ce9ab51 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@16126 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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: ?>