Changeset 38388 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 08/26/2016 09:34:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r38201 r38388 1333 1333 */ 1334 1334 function install_blog( $blog_id, $blog_title = '' ) { 1335 global $wpdb, $wp_roles, $current_site; 1336 1335 global $wpdb, $wp_roles; 1337 1336 // Cast for security 1338 1337 $blog_id = (int) $blog_id; … … 1362 1361 $siteurl = set_url_scheme( $siteurl, 'https' ); 1363 1362 } 1364 if ( 'https' === parse_url( get_home_url( $current_site->blog_id ), PHP_URL_SCHEME ) ) {1363 if ( 'https' === parse_url( get_home_url( get_current_site()->blog_id ), PHP_URL_SCHEME ) ) { 1365 1364 $home = set_url_scheme( $home, 'https' ); 1366 1365 } … … 1499 1498 $message = $welcome_email; 1500 1499 1501 if ( empty( $current_site->site_name ) ) 1500 if ( empty( $current_site->site_name ) ) { 1502 1501 $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 MU1603 *1604 * @global WP_Network $current_site1605 *1606 * @return WP_Network1607 */1608 function get_current_site() {1609 global $current_site;1610 return $current_site;1611 1592 } 1612 1593
Note: See TracChangeset
for help on using the changeset viewer.