Make WordPress Core


Ignore:
Timestamp:
07/13/2015 12:26:21 AM (10 years ago)
Author:
jeremyfelt
Message:

Network Admin: Improved header information in Edit Site tabs.

  • Use the site's name rather than URL in the Edit Site header.
  • Provide "Visit" and "Dashboard" links for the site on all tabs.

Props @Fab1en, @jeremyfelt.
Fixes #32525.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-themes.php

    r33144 r33186  
    134134add_screen_option( 'per_page' );
    135135
    136 $site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
    137 $title_site_url_linked = sprintf( __( 'Edit Site: %s' ), '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>' );
    138 $title = sprintf( __( 'Edit Site: %s' ), $site_url_no_http );
     136$title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) );
    139137
    140138$parent_file = 'sites.php';
     
    144142
    145143<div class="wrap">
    146 <h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
     144<h1 id="edit-site"><?php echo $title; ?></h1>
     145<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id ) ); ?>">Visit</a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>">Dashboard</a></p>
    147146<h3 class="nav-tab-wrapper">
    148147<?php
Note: See TracChangeset for help on using the changeset viewer.