Make WordPress Core


Ignore:
Timestamp:
12/16/2010 06:06:59 AM (14 years ago)
Author:
nacin
Message:

maybe_network_admin_url. see #15840.

File:
1 edited

Legend:

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

    r16951 r16977  
    22712271
    22722272/**
     2273 * Retrieve the url to the admin area for either the current blog or the network
     2274 * depending on whether multisite is enabled.
     2275 *
     2276 * @since 3.1.0
     2277 *
     2278 * @param string $path Optional path relative to the admin url
     2279 * @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.
     2280 * @return string Admin url link with optional path appended
     2281*/
     2282function maybe_network_admin_url( $path = '', $scheme = 'admin' ) {
     2283    if ( is_multisite() )
     2284        return network_admin_url( $path, $scheme );
     2285    else
     2286        return admin_url( $path, $scheme );
     2287}
     2288
     2289/**
    22732290 * Get the URL to the user's dashboard.
    22742291 *
Note: See TracChangeset for help on using the changeset viewer.