Yes, these are internal objects (css, js, images) and images from an external source (our cdn).
Focusing on only the internal objects…
if I was to load https://www.stage.domain.com the css, js and images all show they are loading from stage.domain.com:80 (via firebug). On this stage server stage.domain.com is the main site and https://www.stage.domain.com is a site in stage.domain.com’s network.
I expect that multisite is causing the problem. My understanding is that it has a series of redirects it will use and that is why I’m seeing requests for css,js and images from stage.domain.com.
And as an example the theme pulls in the stylesheet using this:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"/>
and that returns:
<link rel="stylesheet" href="https://www.stage.domain.com/wp-content/themes/THEME_NAME/style.css"/>
I would expect that your plugin would see the the stylesheet_url request and handle the change?
/**
* Filters HTTPS urls from bloginfo function
*
* @param string $result
* @param string $show
* @return string $result
*/
function bloginfo($result = '', $show = '') {
if ( $show == 'stylesheet_url' || $show == 'template_url' || $show == 'wpurl' || $show == 'home' || $show == 'siteurl' || $show == 'url' ) {
$result = $this->replace_https($result);
}
return $result;
}