Make WordPress Core

Ticket #32525: 32525.patch

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

Add a link to the dashboard in Network > Edit site page

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

    ---
     src/wp-admin/network/site-info.php | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/src/wp-admin/network/site-info.php b/src/wp-admin/network/site-info.php
    index 87ca256..2983756 100644
    a b $site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $ 
    9191$title_site_url_linked = sprintf( __( 'Edit Site: %s' ), '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>' );
    9292$title = sprintf( __( 'Edit Site: %s' ), $site_url_no_http );
    9393
     94$dashboard = '<a href="' . get_admin_url( $id ) . '">' . __( '(go to dashboard)' ) . '</a>';
     95
    9496$parent_file = 'sites.php';
    9597$submenu_file = 'sites.php';
    9698
    require( ABSPATH . 'wp-admin/admin-header.php' ); 
    99101?>
    100102
    101103<div class="wrap">
    102 <h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
     104<h2 id="edit-site"><?php echo $title_site_url_linked ?> <small><?php echo $dashboard ?></small></h2>
    103105<h3 class="nav-tab-wrapper">
    104106<?php
    105107$tabs = array(