Changeset 13884 for trunk/wp-admin/includes/ms.php
- Timestamp:
- 03/29/2010 09:45:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r13835 r13884 250 250 251 251 function update_option_new_admin_email($old_value, $value) { 252 global $current_site;253 252 if ( $value == get_option( 'admin_email' ) || !is_email( $value ) ) 254 253 return; … … 277 276 ###SITEURL###"), $new_admin_email ); 278 277 279 $content = str_replace('###ADMIN_URL###', esc_url( get_option( "siteurl" ).'/wp-admin/options.php?adminhash='.$hash), $content);278 $content = str_replace('###ADMIN_URL###', esc_url(admin_url('options.php?adminhash='.$hash)), $content); 280 279 $content = str_replace('###EMAIL###', $value, $content); 281 280 $content = str_replace('###SITENAME###', get_site_option( 'site_name' ), $content); 282 $content = str_replace('###SITEURL###', 'http://' . $current_site->domain . $current_site->path, $content);281 $content = str_replace('###SITEURL###', network_home_url(), $content); 283 282 284 283 wp_mail( $value, sprintf(__('[%s] New Admin Email Address'), get_option('blogname')), $content ); … … 287 286 288 287 function send_confirmation_on_profile_email() { 289 global $errors, $wpdb, $current_user , $current_site;288 global $errors, $wpdb, $current_user; 290 289 if ( ! is_object($errors) ) 291 290 $errors = new WP_Error(); … … 328 327 ###SITEURL###"), $new_user_email ); 329 328 330 $content = str_replace('###ADMIN_URL###', esc_url( get_option( "siteurl" ).'/wp-admin/profile.php?newuseremail='.$hash), $content);329 $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail='.$hash)), $content); 331 330 $content = str_replace('###EMAIL###', $_POST[ 'email' ], $content); 332 331 $content = str_replace('###SITENAME###', get_site_option( 'site_name' ), $content); 333 $content = str_replace('###SITEURL###', 'http://' . $current_site->domain . $current_site->path, $content);332 $content = str_replace('###SITEURL###', network_home_url(), $content); 334 333 335 334 wp_mail( $_POST[ 'email' ], sprintf(__('[%s] New Email Address'), get_option('blogname')), $content ); … … 535 534 536 535 function redirect_user_to_blog() { 537 global $current_user , $current_site;536 global $current_user; 538 537 $c = 0; 539 538 if ( isset( $_GET[ 'c' ] ) ) … … 548 547 $dashboard_blog = get_dashboard_blog(); 549 548 if ( is_object( $blog ) ) { 550 $protocol = ( is_ssl() ? 'https://' : 'http://' ); 551 wp_redirect( $protocol . $blog->domain . $blog->path . 'wp-admin/?c=' . $c ); // redirect and count to 5, "just in case" 549 wp_redirect( get_admin_url($blog->blog_id, '?c=' . $c) ); // redirect and count to 5, "just in case" 552 550 exit; 553 551 }
Note: See TracChangeset
for help on using the changeset viewer.