Closed cameronterry closed 2 years ago
When called through rest_output_link_wp_head() (link) it returns the primary domain (correct). However, when called after using switch_to_blog(), it returns the admin domain (incorrect).
rest_output_link_wp_head()
switch_to_blog()
Discovered whilst adding the unit tests, which works with multisite through the switch_to_blog() / restore_current_blog() mechanism: https://github.com/cameronterry/dark-matter/pull/88.
restore_current_blog()
When called through
rest_output_link_wp_head()
(link) it returns the primary domain (correct). However, when called after usingswitch_to_blog()
, it returns the admin domain (incorrect).Discovered whilst adding the unit tests, which works with multisite through the
switch_to_blog()
/restore_current_blog()
mechanism: https://github.com/cameronterry/dark-matter/pull/88.