Changeset 38814 for trunk/src/wp-includes/ms-blogs.php
- Timestamp:
- 10/19/2016 04:46:14 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r38659 r38814 82 82 */ 83 83 function get_id_from_blogname( $slug ) { 84 $current_ site = get_current_site();84 $current_network = get_network(); 85 85 $slug = trim( $slug, '/' ); 86 86 87 87 if ( is_subdomain_install() ) { 88 $domain = $slug . '.' . preg_replace( '|^www\.|', '', $current_ site->domain );89 $path = $current_ site->path;88 $domain = $slug . '.' . preg_replace( '|^www\.|', '', $current_network->domain ); 89 $path = $current_network->path; 90 90 } else { 91 $domain = $current_ site->domain;92 $path = $current_ site->path . $slug . '/';91 $domain = $current_network->domain; 92 $path = $current_network->path . $slug . '/'; 93 93 } 94 94
Note: See TracChangeset
for help on using the changeset viewer.