Additional improvement to sites list table display
* Build `$blogname` identically when creating action link messaging. * Remove the trailing slash from URLs for a better UI. See #32434. git-svn-id: https://develop.svn.wordpress.org/trunk@32719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9170edb2b2
commit
fc2ba19214
@ -262,7 +262,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||
}
|
||||
echo "<tr{$class}>";
|
||||
|
||||
$blogname = $blog['domain'] . $blog['path'];
|
||||
$blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
|
||||
|
||||
list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();
|
||||
|
||||
@ -402,7 +402,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||
global $current_site;
|
||||
|
||||
if ( $primary === $column_name ) {
|
||||
$blogname = ( is_subdomain_install() ) ? str_replace( '.'.$current_site->domain, '', $blog['domain'] ) : $blog['path'];
|
||||
$blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
|
||||
|
||||
// Preordered.
|
||||
$actions = array(
|
||||
|
Loading…
Reference in New Issue
Block a user