Changeset 38636 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 09/20/2016 09:38:08 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r38457 r38636 1333 1333 */ 1334 1334 function install_blog( $blog_id, $blog_title = '' ) { 1335 global $wpdb, $wp_roles; 1335 global $wpdb, $wp_roles, $current_site; 1336 1336 1337 // Cast for security 1337 1338 $blog_id = (int) $blog_id; … … 1361 1362 $siteurl = set_url_scheme( $siteurl, 'https' ); 1362 1363 } 1363 if ( 'https' === parse_url( get_home_url( get_current_site()->blog_id ), PHP_URL_SCHEME ) ) {1364 if ( 'https' === parse_url( get_home_url( $current_site->blog_id ), PHP_URL_SCHEME ) ) { 1364 1365 $home = set_url_scheme( $home, 'https' ); 1365 1366 } … … 1498 1499 $message = $welcome_email; 1499 1500 1500 if ( empty( $current_site->site_name ) ) {1501 if ( empty( $current_site->site_name ) ) 1501 1502 $current_site->site_name = 'WordPress'; 1502 }1503 1503 1504 1504 /** … … 1590 1590 wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); 1591 1591 return true; 1592 } 1593 1594 /** 1595 * Get the current network. 1596 * 1597 * Returns an object containing the 'id', 'domain', 'path', and 'site_name' 1598 * properties of the network being viewed. 1599 * 1600 * @see wpmu_current_site() 1601 * 1602 * @since MU 1603 * 1604 * @global WP_Network $current_site 1605 * 1606 * @return WP_Network 1607 */ 1608 function get_current_site() { 1609 global $current_site; 1610 return $current_site; 1592 1611 } 1593 1612
Note: See TracChangeset
for help on using the changeset viewer.