diff --git a/inc/class-domain-mapping.php b/inc/class-domain-mapping.php index bc5c75e50..2d80059c3 100644 --- a/inc/class-domain-mapping.php +++ b/inc/class-domain-mapping.php @@ -937,7 +937,11 @@ private function get_primary_mapping_for_site($site_id) { public function fix_srcset($sources) { // Check if we have a valid mapping - if (empty($this->current_mapping) || ! $this->current_mapping->get_site()) { + if ( + empty($this->current_mapping) + || get_current_blog_id() !== $this->current_mapping->get_blog_id() + || ! $this->current_mapping->get_site() + ) { return $sources; }