Changeset 21414 for trunk/wp-includes/link-template.php
- Timestamp:
- 08/03/2012 05:51:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r21413 r21414 1897 1897 $scheme = is_ssl() && !is_admin() ? 'https' : 'http'; 1898 1898 1899 if ( empty( $blog_id ) || !is_multisite() ) 1899 if ( empty( $blog_id ) || !is_multisite() ) { 1900 1900 $url = get_option( 'home' ); 1901 else 1902 $url = get_blog_option( $blog_id, 'home' ); 1901 } else { 1902 switch_to_blog( $blog_id ); 1903 $url = get_option( 'home' ); 1904 restore_current_blog(); 1905 } 1903 1906 1904 1907 if ( 'relative' == $scheme ) … … 1962 1965 } 1963 1966 1964 if ( empty( $blog_id ) || !is_multisite() ) 1967 if ( empty( $blog_id ) || !is_multisite() ) { 1965 1968 $url = get_option( 'siteurl' ); 1966 else 1967 $url = get_blog_option( $blog_id, 'siteurl' ); 1969 } else { 1970 switch_to_blog( $blog_id ); 1971 $url = get_option( 'siteurl' ); 1972 restore_current_blog(); 1973 } 1968 1974 1969 1975 if ( 'relative' == $scheme )
Note: See TracChangeset
for help on using the changeset viewer.