Make WordPress Core

Ticket #32525: 32525_side.patch

File 32525_side.patch, 3.8 KB (added by Fab1en, 8 years ago)

Dashboard link on the side

  • 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..5f88e92 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' ); 
    137139?>
    138140
    139141<div class="wrap">
    140 <h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
     142<h1 id="edit-site"><?php echo $title_site_url_linked ?> <small><?php echo $dashboard ?></small></h1>
    141143<h3 class="nav-tab-wrapper">
    142144<?php
    143145$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..9e196c6 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' ); 
    8789?>
    8890
    8991<div class="wrap">
    90 <h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
     92<h1 id="edit-site"><?php echo $title_site_url_linked ?> <small><?php echo $dashboard ?></small></h1>
    9193<h3 class="nav-tab-wrapper">
    9294<?php
    9395$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..37e5ea1 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
    139141require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    140142
    141143<div class="wrap">
    142 <h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
     144<h1 id="edit-site"><?php echo $title_site_url_linked ?> <small><?php echo $dashboard ?></small></h1>
    143145<h3 class="nav-tab-wrapper">
    144146<?php
    145147$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..44c5b8a 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; ?>; 
    182184
    183185
    184186<div class="wrap">
    185 <h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
     187<h1 id="edit-site"><?php echo $title_site_url_linked ?> <small><?php echo $dashboard ?></small></h1>
    186188<h3 class="nav-tab-wrapper">
    187189<?php
    188190$tabs = array(