Multisite bug with WP CORE ms-blogs
-
WP CORE msblogs.php has a known issue when using HTTPS for multisites. When adding newsites the http gets appended to the url then it manually has to be updated to work correctly.
This was the core fix I found in WP Support force-https-or-relative-urls-for-media-in-posts. But this issue has been around for a while. My question is what approach would be best when upgrading WordPress since this fix has not been added to the core.
Can I use a plugin to override this functionality?
Using this core function:
function get_blogaddress_by_id( $blog_id ) {
$bloginfo = get_blog_details( (int) $blog_id, false ); // only get bare details!
return esc_url( ‘https://’ . $bloginfo->domain . $bloginfo->path );
}
and apply the fix above to override the core upon creating new subsites.Any help would be greatly appreciated thanks.
- The topic ‘Multisite bug with WP CORE ms-blogs’ is closed to new replies.