Make WordPress Core

Ticket #32525: 32525_under.patch

File 32525_under.patch, 3.6 KB (added by Fab1en, 9 years ago)

Dashboard link under the site URL

  • src/wp-admin/network/site-info.php

    diff --git a/src/wp-admin/network/site-info.php b/src/wp-admin/network/site-info.php
    index 61fea29..586d085 100644
    a b $site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $ 
    129129$title_site_url_linked = sprintf( __( 'Edit Site: %s' ), '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>' );
    130130$title = sprintf( __( 'Edit Site: %s' ), $site_url_no_http );
    131131
     132$dashboard = '<a href="' . get_admin_url( $id ) . '">' . __( '(Go to dashboard)' ) . '</a>';
     133
    132134$parent_file = 'sites.php';
    133135$submenu_file = 'sites.php';
    134136
    require( ABSPATH . 'wp-admin/admin-header.php' ); 
    138140
    139141<div class="wrap">
    140142<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
     143<h3><?php echo $dashboard; ?></h3>
    141144<h3 class="nav-tab-wrapper">
    142145<?php
    143146$tabs = array(
  • src/wp-admin/network/site-settings.php

    diff --git a/src/wp-admin/network/site-settings.php b/src/wp-admin/network/site-settings.php
    index 31980ee..cd73167 100644
    a b $site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $ 
    7979$title_site_url_linked = sprintf( __( 'Edit Site: %s' ), '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>' );
    8080$title = sprintf( __( 'Edit Site: %s' ), $site_url_no_http );
    8181
     82$dashboard = '<a href="' . get_admin_url( $id ) . '">' . __( '(Go to dashboard)' ) . '</a>';
     83
    8284$parent_file = 'sites.php';
    8385$submenu_file = 'sites.php';
    8486
    require( ABSPATH . 'wp-admin/admin-header.php' ); 
    8890
    8991<div class="wrap">
    9092<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
     93<h3><?php echo $dashboard; ?></h3>
    9194<h3 class="nav-tab-wrapper">
    9295<?php
    9396$tabs = array(
  • src/wp-admin/network/site-themes.php

    diff --git a/src/wp-admin/network/site-themes.php b/src/wp-admin/network/site-themes.php
    index 0042601..4ec648e 100644
    a b $site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $ 
    133133$title_site_url_linked = sprintf( __( 'Edit Site: %s' ), '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>' );
    134134$title = sprintf( __( 'Edit Site: %s' ), $site_url_no_http );
    135135
     136$dashboard = '<a href="' . get_admin_url( $id ) . '">' . __( '(Go to dashboard)' ) . '</a>';
     137
    136138$parent_file = 'sites.php';
    137139$submenu_file = 'sites.php';
    138140
    require( ABSPATH . 'wp-admin/admin-header.php' ); ?> 
    140142
    141143<div class="wrap">
    142144<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
     145<h3><?php echo $dashboard; ?></h3>
    143146<h3 class="nav-tab-wrapper">
    144147<?php
    145148$tabs = array(
  • src/wp-admin/network/site-users.php

    diff --git a/src/wp-admin/network/site-users.php b/src/wp-admin/network/site-users.php
    index f290565..700d323 100644
    a b $site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $ 
    161161$title_site_url_linked = sprintf( __( 'Edit Site: %s' ), '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>' );
    162162$title = sprintf( __( 'Edit Site: %s' ), $site_url_no_http );
    163163
     164$dashboard = '<a href="' . get_admin_url( $id ) . '">' . __( '(Go to dashboard)' ) . '</a>';
     165
    164166$parent_file = 'sites.php';
    165167$submenu_file = 'sites.php';
    166168
    var current_site_id = <?php echo $id; ?>; 
    183185
    184186<div class="wrap">
    185187<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
     188<h3><?php echo $dashboard; ?></h3>
    186189<h3 class="nav-tab-wrapper">
    187190<?php
    188191$tabs = array(