WordPress.org

Make WordPress Core

Ticket #17257: wp17257-link-edit-site.diff

File wp17257-link-edit-site.diff, 3.7 KB (added by lloydbudd, 7 years ago)
  • wp-admin/network/site-info.php

     
    7878                $messages[] = __('Site info updated.');
    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="%s">%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';
    8487
     
    8891
    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
    9497$tabs = array(
  • wp-admin/network/site-settings.php

     
    6868                $messages[] = __('Site options updated.');
    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="%s">%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';
    7477
     
    7881
    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
    8487$tabs = array(
  • wp-admin/network/site-users.php

     
    157157
    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="%s">%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';
    163166
     
    165168
    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
    171174$tabs = array(
  • wp-admin/network/site-themes.php

     
    124124add_thickbox();
    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="%s">%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';
    130133
     
    132135
    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
    138141$tabs = array(