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. Built from https://develop.svn.wordpress.org/trunk@33186 git-svn-id: http://core.svn.wordpress.org/trunk@33158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -161,9 +161,7 @@ if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
|
||||
|
||||
add_screen_option( 'per_page' );
|
||||
|
||||
$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
|
||||
$title_site_url_linked = sprintf( __( 'Edit Site: %s' ), '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>' );
|
||||
$title = sprintf( __( 'Edit Site: %s' ), $site_url_no_http );
|
||||
$title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) );
|
||||
|
||||
$parent_file = 'sites.php';
|
||||
$submenu_file = 'sites.php';
|
||||
@@ -186,7 +184,8 @@ var current_site_id = <?php echo $id; ?>;
|
||||
|
||||
|
||||
<div class="wrap">
|
||||
<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
|
||||
<h1 id="edit-site"><?php echo $title; ?></h1>
|
||||
<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>
|
||||
<h3 class="nav-tab-wrapper">
|
||||
<?php
|
||||
$tabs = array(
|
||||
|
||||
Reference in New Issue
Block a user