WordPress.org

Make WordPress Core

Changeset 18129


Ignore:
Timestamp:
06/03/11 15:35:45 (3 years ago)
Author:
ryan
Message:

Link to site being edited. Props lloydbudd. fixes #17257

Location:
trunk/wp-admin/network
Files:
4 edited

Legend:

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

    r17144 r18129  
    7979} 
    8080 
    81 $title = sprintf( __('Edit Site: %s'), get_blogaddress_by_id($id)); 
     81$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) ); 
     82$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http ); 
     83$title = sprintf( __('Edit Site: %s'), $site_url_no_http ); 
     84 
    8285$parent_file = 'sites.php'; 
    8386$submenu_file = 'sites.php'; 
     
    8992<div class="wrap"> 
    9093<?php screen_icon('ms-admin'); ?> 
    91 <h2 id="edit-site"><?php echo $title ?></h2> 
     94<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2> 
    9295<h3 class="nav-tab-wrapper"> 
    9396<?php 
  • trunk/wp-admin/network/site-settings.php

    r17144 r18129  
    6969} 
    7070 
    71 $title = sprintf( __('Edit Site: %s'), get_blogaddress_by_id($id)); 
     71$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) ); 
     72$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http ); 
     73$title = sprintf( __('Edit Site: %s'), $site_url_no_http ); 
     74 
    7275$parent_file = 'sites.php'; 
    7376$submenu_file = 'sites.php'; 
     
    7982<div class="wrap"> 
    8083<?php screen_icon('ms-admin'); ?> 
    81 <h2 id="edit-site"><?php echo $title ?></h2> 
     84<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2> 
    8285<h3 class="nav-tab-wrapper"> 
    8386<?php 
  • trunk/wp-admin/network/site-themes.php

    r17322 r18129  
    125125add_screen_option( 'per_page', array( 'label' => _x( 'Themes', 'themes per page (screen options)' ) ) ); 
    126126 
    127 $title = sprintf( __('Edit Site: %s'), get_blogaddress_by_id($id)); 
     127$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) ); 
     128$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http ); 
     129$title = sprintf( __('Edit Site: %s'), $site_url_no_http ); 
     130 
    128131$parent_file = 'sites.php'; 
    129132$submenu_file = 'sites.php'; 
     
    133136<div class="wrap"> 
    134137<?php screen_icon('ms-admin'); ?> 
    135 <h2 id="edit-site"><?php echo $title ?></h2> 
     138<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2> 
    136139<h3 class="nav-tab-wrapper"> 
    137140<?php 
  • trunk/wp-admin/network/site-users.php

    r18010 r18129  
    158158add_screen_option( 'per_page', array( 'label' => _x( 'Users', 'users per page (screen options)' ) ) ); 
    159159 
    160 $title = sprintf( __('Edit Site: %s'), get_blogaddress_by_id($id)); 
     160$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) ); 
     161$title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http ); 
     162$title = sprintf( __('Edit Site: %s'), $site_url_no_http ); 
     163 
    161164$parent_file = 'sites.php'; 
    162165$submenu_file = 'sites.php'; 
     
    166169<div class="wrap"> 
    167170<?php screen_icon('ms-admin'); ?> 
    168 <h2 id="edit-site"><?php echo $title ?></h2> 
     171<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2> 
    169172<h3 class="nav-tab-wrapper"> 
    170173<?php 
Note: See TracChangeset for help on using the changeset viewer.