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
This commit is contained in:
Peter Westwood 2010-11-01 08:43:24 +00:00
parent 0abd20cd8d
commit d34290a605
1 changed files with 7 additions and 7 deletions

View File

@ -158,7 +158,7 @@ class WP_Sites_Table extends WP_List_Table {
}
echo "<tr class='$class'>";
$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();