WordPress.org

Make WordPress Core

Changeset 32719


Ignore:
Timestamp:
06/10/2015 07:27:09 AM (6 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php

    r32718 r32719  
    263263            echo "<tr{$class}>";
    264264
    265             $blogname = $blog['domain'] . $blog['path'];
     265            $blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
    266266
    267267            list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();
     
    403403
    404404        if ( $primary === $column_name ) {
    405             $blogname = ( is_subdomain_install() ) ? str_replace( '.'.$current_site->domain, '', $blog['domain'] ) : $blog['path'];
     405            $blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
    406406
    407407            // Preordered.
Note: See TracChangeset for help on using the changeset viewer.