mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Use get_current_site() instead of the $current_site global when possible.
props jeremyfelt. fixes #25158. git-svn-id: https://develop.svn.wordpress.org/trunk@26120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -64,8 +64,9 @@ function get_blogaddress_by_name( $blogname ) {
|
||||
* @return int A blog id
|
||||
*/
|
||||
function get_id_from_blogname( $slug ) {
|
||||
global $wpdb, $current_site;
|
||||
global $wpdb;
|
||||
|
||||
$current_site = get_current_site();
|
||||
$slug = trim( $slug, '/' );
|
||||
|
||||
$blog_id = wp_cache_get( 'get_id_from_blogname_' . $slug, 'blog-details' );
|
||||
|
||||
Reference in New Issue
Block a user