Changeset 16994 for trunk/wp-includes/link-template.php
- Timestamp:
- 12/16/2010 09:31:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r16977 r16994 2224 2224 */ 2225 2225 function network_admin_url( $path = '', $scheme = 'admin' ) { 2226 if ( ! is_multisite() ) 2227 return admin_url( $path, $scheme ); 2228 2226 2229 $url = network_site_url('wp-admin/network/', $scheme); 2227 2230 … … 2268 2271 else 2269 2272 return admin_url($path, $scheme); 2270 }2271 2272 /**2273 * Retrieve the url to the admin area for either the current blog or the network2274 * depending on whether multisite is enabled.2275 *2276 * @since 3.1.02277 *2278 * @param string $path Optional path relative to the admin url2279 * @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 appended2281 */2282 function maybe_network_admin_url( $path = '', $scheme = 'admin' ) {2283 if ( is_multisite() )2284 return network_admin_url( $path, $scheme );2285 else2286 return admin_url( $path, $scheme );2287 2273 } 2288 2274
Note: See TracChangeset
for help on using the changeset viewer.