WordPress.org

Make WordPress Core

Ticket #34450: 34450.patch

File 34450.patch, 487 bytes (added by igmoweb, 5 years ago)

patch to get_id_from_blogname

  • src/wp-includes/ms-blogs.php

     
    8484                return $blog_id;
    8585
    8686        if ( is_subdomain_install() ) {
    87                 $domain = $slug . '.' . $current_site->domain;
     87                $domain = $slug . '.' . preg_replace( '|^www\.|', '', $current_site->domain );
    8888                $path = $current_site->path;
    8989        } else {
    9090                $domain = $current_site->domain;