WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/30/2010 08:34:54 PM (10 years ago)
Author:
ryan
Message:

Network Admin, first pass. see #14435

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r15411 r15481  
    21332133*/
    21342134function network_admin_url( $path = '', $scheme = 'admin' ) {
    2135     $url = network_site_url('wp-admin/', $scheme);
     2135    $url = network_site_url('wp-admin/network/', $scheme);
    21362136
    21372137    if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
     
    21392139
    21402140    return apply_filters('network_admin_url', $url, $path);
     2141}
     2142
     2143/**
     2144 * Retrieve the url to the admin area for either the current blog or the network depending on context.
     2145 *
     2146 * @package WordPress
     2147 * @since 3.1.0
     2148 *
     2149 * @param string $path Optional path relative to the admin url
     2150 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes.
     2151 * @return string Admin url link with optional path appended
     2152*/
     2153function self_admin_url($path = '', $scheme = 'admin') {
     2154    if ( is_network_admin() )
     2155        return network_admin_url($path, $scheme);
     2156    else
     2157        return admin_url($path, $scheme);
    21412158}
    21422159
Note: See TracChangeset for help on using the changeset viewer.