Changeset 13884 for trunk/wp-includes/ms-functions.php
- Timestamp:
- 03/29/2010 09:45:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r13715 r13884 675 675 // Send email with activation link. 676 676 if ( !is_subdomain_install() || $current_site->id != 1 ) 677 $activate_url = "http://" . $current_site->domain . $current_site->path . "wp-activate.php?key=$key";677 $activate_url = network_site_url("wp-activate.php?key=$key"); 678 678 else 679 $activate_url = "http://{$domain}{$path}wp-activate.php?key=$key"; 679 $activate_url = "http://{$domain}{$path}wp-activate.php?key=$key"; // @todo use *_url() API 680 680 681 681 $activate_url = esc_url($activate_url); … … 842 842 843 843 function newblog_notify_siteadmin( $blog_id, $deprecated = '' ) { 844 global $current_site;845 844 if ( get_site_option( 'registrationnotification' ) != 'yes' ) 846 845 return false; … … 850 849 return false; 851 850 852 $options_site_url = esc_url( "http://{$current_site->domain}{$current_site->path}wp-admin/ms-options.php");851 $options_site_url = esc_url(network_admin_url('ms-options.php')); 853 852 854 853 switch_to_blog( $blog_id ); 855 854 $blogname = get_option( 'blogname' ); 856 $siteurl = get_option( 'siteurl');855 $siteurl = site_url(); 857 856 restore_current_blog(); 858 857 … … 869 868 870 869 function newuser_notify_siteadmin( $user_id ) { 871 global $current_site;872 873 870 if ( get_site_option( 'registrationnotification' ) != 'yes' ) 874 871 return false; … … 881 878 $user = new WP_User($user_id); 882 879 883 $options_site_url = esc_url( "http://{$current_site->domain}{$current_site->path}wp-admin/ms-options.php");880 $options_site_url = esc_url(network_admin_url('ms-options.php')); 884 881 $msg = sprintf(__("New User: %1s 885 882 Remote IP: %2s … … 1279 1276 if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = NOBLOGREDIRECT ) ) { 1280 1277 if ( $destination == '%siteurl%' ) 1281 $destination = $current_site->domain . $current_site->path;1278 $destination = network_home_url(); 1282 1279 wp_redirect( $destination ); 1283 1280 exit();
Note: See TracChangeset
for help on using the changeset viewer.