Multi-site get_bloginfo(‘stylesheet_directory’) referring to sub-folder

Okay I avoided the lazy way out =)

For others that have my particular site requirements, here’s my workaround, of simply creating my own custom method in functions.php:

function mysite_get_theme_directory_uri() {
    // chop up the url from get_stylesheet directory
    $parsedUrl = parse_url(get_stylesheet_directory_uri());

    // chop up the 'path' index value
    $path = $parsedUrl['path'];
    // make it an array
    $parsedPath = explode("https://wordpress.stackexchange.com/", $path);
    // remove the 3rd element of the path's array, which is the site name
    unset($parsedPath[2]);

    // put that path array back into a string
    $themesPath = implode("https://wordpress.stackexchange.com/", $parsedPath);

    // return full URL
    return $parsedUrl['scheme'] . '://' . $parsedUrl['host'] . $themesPath;
}

error code: 523