Ticket #37297: 37297.diff
File 37297.diff, 3.0 KB (added by , 8 years ago) |
---|
-
src/wp-activate.php
125 125 <?php 126 126 } 127 127 } else { 128 $url = isset( $result['blog_id'] ) ? get_ blogaddress_by_id( (int) $result['blog_id'] ) : '';128 $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : ''; 129 129 $user = get_userdata( (int) $result['user_id'] ); 130 130 ?> 131 131 <h2><?php _e('Your account is now active!'); ?></h2> -
src/wp-includes/deprecated.php
3757 3757 3758 3758 return ''; 3759 3759 } 3760 3761 /** 3762 * Get a full blog URL, given a blog id. 3763 * 3764 * @since MU 3765 * @deprecated 4.7.0 3766 * 3767 * @param int $blog_id Blog ID 3768 * @return string Full URL of the blog if found. Empty string if not. 3769 */ 3770 function get_blogaddress_by_id( $blog_id ) { 3771 _deprecated_function( __FUNCTION__, '4.7.0' ); 3772 3773 $blog_id = (int)$blog_id; 3774 $bloginfo = get_site($blog_id); 3775 3776 if ( empty( $bloginfo ) ) { 3777 return ''; 3778 } 3779 3780 $scheme = parse_url( $bloginfo->home, PHP_URL_SCHEME ); 3781 $scheme = empty( $scheme ) ? 'http' : $scheme; 3782 3783 return esc_url( $scheme . '://' . $bloginfo->domain . $bloginfo->path ); 3784 } -
src/wp-includes/ms-blogs.php
29 29 do_action( 'wpmu_blog_updated', $wpdb->blogid ); 30 30 } 31 31 32 /**33 * Get a full blog URL, given a blog id.34 *35 * @since MU36 *37 * @param int $blog_id Blog ID38 * @return string Full URL of the blog if found. Empty string if not.39 */40 function get_blogaddress_by_id( $blog_id ) {41 $bloginfo = get_blog_details( (int) $blog_id );42 32 43 if ( empty( $bloginfo ) ) {44 return '';45 }46 47 $scheme = parse_url( $bloginfo->home, PHP_URL_SCHEME );48 $scheme = empty( $scheme ) ? 'http' : $scheme;49 50 return esc_url( $scheme . '://' . $bloginfo->domain . $bloginfo->path );51 }52 53 33 /** 54 34 * Get a full blog URL, given a blog name. 55 35 * -
src/wp-includes/ms-functions.php
1346 1346 die( '<h1>' . __( 'Already Installed' ) . '</h1><p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p></body></html>' ); 1347 1347 $wpdb->suppress_errors( $suppress ); 1348 1348 1349 $url = get_ blogaddress_by_id( $blog_id );1349 $url = get_home_url( $blog_id ); 1350 1350 1351 1351 // Set everything up 1352 1352 make_db_current_silent( 'blog' ); … … 1467 1467 --The Team @ SITE_NAME' ); 1468 1468 } 1469 1469 1470 $url = get_ blogaddress_by_id($blog_id);1470 $url = get_home_url($blog_id); 1471 1471 $user = get_userdata( $user_id ); 1472 1472 1473 1473 $welcome_email = str_replace( 'SITE_NAME', $current_site->site_name, $welcome_email );