Changeset 15481 for trunk/wp-includes/link-template.php
- Timestamp:
- 07/30/2010 08:34:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r15411 r15481 2133 2133 */ 2134 2134 function network_admin_url( $path = '', $scheme = 'admin' ) { 2135 $url = network_site_url('wp-admin/ ', $scheme);2135 $url = network_site_url('wp-admin/network/', $scheme); 2136 2136 2137 2137 if ( !empty($path) && is_string($path) && strpos($path, '..') === false ) … … 2139 2139 2140 2140 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 */ 2153 function 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); 2141 2158 } 2142 2159
Note: See TracChangeset
for help on using the changeset viewer.