Link to site being edited. Props lloydbudd. fixes #17257
git-svn-id: https://develop.svn.wordpress.org/trunk@18129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
30d46abd66
commit
a118d32b6b
@ -78,7 +78,10 @@ if ( isset($_GET['update']) ) {
|
||||
$messages[] = __('Site info updated.');
|
||||
}
|
||||
|
||||
$title = sprintf( __('Edit Site: %s'), get_blogaddress_by_id($id));
|
||||
$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
|
||||
$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
|
||||
$title = sprintf( __('Edit Site: %s'), $site_url_no_http );
|
||||
|
||||
$parent_file = 'sites.php';
|
||||
$submenu_file = 'sites.php';
|
||||
|
||||
@ -88,7 +91,7 @@ require('../admin-header.php');
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2 id="edit-site"><?php echo $title ?></h2>
|
||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
||||
<h3 class="nav-tab-wrapper">
|
||||
<?php
|
||||
$tabs = array(
|
||||
|
@ -68,7 +68,10 @@ if ( isset($_GET['update']) ) {
|
||||
$messages[] = __('Site options updated.');
|
||||
}
|
||||
|
||||
$title = sprintf( __('Edit Site: %s'), get_blogaddress_by_id($id));
|
||||
$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
|
||||
$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
|
||||
$title = sprintf( __('Edit Site: %s'), $site_url_no_http );
|
||||
|
||||
$parent_file = 'sites.php';
|
||||
$submenu_file = 'sites.php';
|
||||
|
||||
@ -78,7 +81,7 @@ require('../admin-header.php');
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2 id="edit-site"><?php echo $title ?></h2>
|
||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
||||
<h3 class="nav-tab-wrapper">
|
||||
<?php
|
||||
$tabs = array(
|
||||
|
@ -124,7 +124,10 @@ if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
|
||||
add_thickbox();
|
||||
add_screen_option( 'per_page', array( 'label' => _x( 'Themes', 'themes per page (screen options)' ) ) );
|
||||
|
||||
$title = sprintf( __('Edit Site: %s'), get_blogaddress_by_id($id));
|
||||
$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
|
||||
$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
|
||||
$title = sprintf( __('Edit Site: %s'), $site_url_no_http );
|
||||
|
||||
$parent_file = 'sites.php';
|
||||
$submenu_file = 'sites.php';
|
||||
|
||||
@ -132,7 +135,7 @@ require('../admin-header.php'); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2 id="edit-site"><?php echo $title ?></h2>
|
||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
||||
<h3 class="nav-tab-wrapper">
|
||||
<?php
|
||||
$tabs = array(
|
||||
|
@ -157,7 +157,10 @@ if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
|
||||
|
||||
add_screen_option( 'per_page', array( 'label' => _x( 'Users', 'users per page (screen options)' ) ) );
|
||||
|
||||
$title = sprintf( __('Edit Site: %s'), get_blogaddress_by_id($id));
|
||||
$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
|
||||
$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
|
||||
$title = sprintf( __('Edit Site: %s'), $site_url_no_http );
|
||||
|
||||
$parent_file = 'sites.php';
|
||||
$submenu_file = 'sites.php';
|
||||
|
||||
@ -165,7 +168,7 @@ require('../admin-header.php'); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2 id="edit-site"><?php echo $title ?></h2>
|
||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
||||
<h3 class="nav-tab-wrapper">
|
||||
<?php
|
||||
$tabs = array(
|
||||
|
Loading…
Reference in New Issue
Block a user