WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/29/2010 09:45:31 PM (12 years ago)
Author:
ryan
Message:

Use network_*_url(). see #12736

File:
1 edited

Legend:

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

    r13882 r13884  
    20382038function network_site_url( $path = '', $scheme = null ) {
    20392039    global $current_site;
     2040
     2041    if ( !is_multisite() )
     2042        return site_url($path, $scheme);
     2043
    20402044    $orig_scheme = $scheme;
    20412045    if ( !in_array($scheme, array('http', 'https')) ) {
     
    20762080function network_home_url( $path = '', $scheme = null ) {
    20772081    global $current_site;
     2082
     2083    if ( !is_multisite() )
     2084        return home_url($path, $scheme);
     2085
    20782086    $orig_scheme = $scheme;
    20792087
Note: See TracChangeset for help on using the changeset viewer.