Thanks to @Sorin for posting the trac. From there I found a solution using just filters in functions.php (so no editing the core)
Thanks @mensmaximus for posting there:
Link: https://core.trac.wordpress.org/ticket/33887#comment:3
<?php
add_filter( 'network_admin_url', 'mmx_network_admin_url', 1, 2 );
function mmx_network_admin_url( $url, $path ){
$url = "https://my_master_domain/wp-admin/network/" . $path;
return $url;
}
add_filter( 'admin_url', 'mmx_admin_url', 1, 3 );
function mmx_admin_url( $url, $path, $blog_id ) {
$blog_id = ( $blog_id ) ? $blog_id : get_current_blog_id();
if ( preg_match( '|^http(s)?://|', $url) ) {
$blog_details = get_blog_details( $blog_id );
$url = $blog_details->siteurl . '/wp-admin/' . $path;
}
return $url;
}
Related Posts:
- Switching MultiSite installation from HTTP to HTTPS
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- Make default new sites https (multisite)
- wp-admin redirect loop with ssl
- How to properly force https and www on multisite with Apache HTAccess
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- Domain Mapping for WordPress MU and https redirection – How to?
- Generate HTTPS Urls in multisite
- How to convert multisite subdomain from http to https
- WordPress Multisite keeps redirecting to HTTPS
- Anyone figured out how to use WordPress MultiSite with Domain Mapping & SSL?
- What do I need to do to convert my MultiSite from HTTP to HTTPS?
- Multisite Domain Mapping with SSL
- SSL wildcard issue for wp multisite subdomains
- Multisite database upgrade SSL error
- “Upgrade Network” error: stuck with SSL certificate verification
- SSL for mapped subdomains in multisite (no plugins)
- Why wordpress multisite redirect to wp-signup if site exists?
- Multisite without .htaccess
- Is Partial SSL Possible? ( multisite )
- wordpress multisite, https for whole site or just admin?
- Forcing SSL Protocol for Multisite Subdomain Child Sites + cPanel Configuration
- https redirect hell (adding www)
- Force Load https WordPress Plugins
- Site kit Google Analytics setup giving Error: {“error”:”invalid ‘redirect_uri'”}
- Link to Network Admin Broken After Switching to HTTPS
- How to use a Wildcard SSL with WordPress Network?
- Is this the right set of records for Route53 domain to point to a mapped domain in a multisite? [closed]
- Nginx Wildcard SSL with WordPress Multisite Subdomains
- Migrating MultiSite to SSL: Media Library not updating
- Multisite, domain mapping and SSL?
- MU/Subdomains + Domain Mapping + SSL?
- HTTPS Warning and Certificate Error when Updating Network
- Issue with Multisite and SSL
- Network Admin URL is shown to anyone before accessing a blog
- Media library links broken WordPress Multisite after SSL update
- Redirecting specific sites to HTTP in WordPress Multisite
- Enable HTTPS for AWS hosted multisite domain (with AWS purchased SSL) on already created Load Balancer?
- WordPress Multisite with Wildcard Certificates not mapping correctly
- SSL for Mapped Domains with WordPress Multisite on AWS
- Multisite domain mapping with SSL redirects to main domain
- Update siteurl and home in multisite subsites to https
- User not staying logged into one of sub sites in multisite after SSL
- Single sign on to sub-sites in Multisite Network
- WordPress Multisite with cPanel Addon Domains and SSL
- WordPress Network with SSL for multiple domains
- Sending SMTP mail using a server with self-signed SSL
- Nice font not working when http to https – SSL Issue
- Integrating WordPress for blog and other content pages in a web app
- Using WordPress multisite is there a way to force HTTPS on specific subsites and not others?
- What are options are there to implement a multi language site
- Where is the robots.txt stored for a WordPress Multisite install?
- Settings API in Multisite – Missing update message
- WordPress Multisite Multiple child theme
- Allowing logged in users to comment without moderation across a multisite installation
- How to get the via url (or site name) on a wordpress network’s home page?
- WordPress multisite htaccess
- Subdirectory multisite – only root admin available on NGINX
- WP 4.4 – domain mapping for sites within a multisite network?
- Can I use two different domain names with a WordPress multisite network?
- Restrict Admin Capabilities in MultiSite
- Installing multisite on domain with existing subdirectory wordpress installations
- wp_redirect not working on admin menu page
- Bulk theme settings in wordpress multisite
- Multisite domain naming
- Switch a single site to a multi-site
- Preferred method of setting user role only works on Main Site in Network
- How to share primary navigation of main site with subsites usining switch_to_blog
- Multisite sub-directories IIS 7.5 change media/uploads location
- One Domain, Two Installs of WordPress
- add_rewrite_rule not working in WordPress Multisite
- How do I find where the current value of the option ‘registration’ in the SQL database?
- is_main_site() Always Returns True
- Strange multisite issue where all sites return same id with get_current_site()
- Permalink with a Category and then a Post
- Creating a subdomain network in a subdomain
- Sub-sub folders of WordPress Multisite subdirectory
- How much resources are good enough for 3.9.2
- Best Practise: Linking to WPMU sites from other sites
- Common user login for two different wordpress installation and bbpress
- WordPress Multisite and how to apply sef urls only to specific sites
- Custom css – WordPress Multisite
- how to convert a wp multisite into a single site with content from subsites
- Getting stylesheet error after setting subdomain to false in multisite
- “Multisite support is not enabled.” After Multisite Config Changes
- String translation within WordPress multisite with i18n not working on all sites
- Add new sites on the same level as the parent URL in a multisite
- Add radio button on theme at the select of the theme the same theme should be activated after generation of new site in multi site
- Changed singlesite to multisite, but new site shows Maintenance
- multisite shared settings
- Multi Site Translate Strings
- Should I use MultiSite for a subdomain based wp site?
- Can’t import posts in multisite
- User registration problem on multisites web
- Admin user getting redirected to /wp-admin/user
- How do I secure a subdomain using UCC SSL?
- Getting 404 after Update in Multisite
- personal_options hook on WordPress multisite
- Multi site root site installed on subdomain, with child sites as subdirectories
- Change a subsite Admin role of a WordPress Multisite after 24 hours registering