I’ve a multisite situated at instance.com
which has a subsite situated at subsite.instance.com
.
I adopted the official WordPress.org documentation to map subsite.instance.com
to otherexample.com
https://wordpress.org/help/article/wordpress-multisite-domain-mapping/
The general public website maps completely to otherexample.com
(all hyperlinks work appropriately).
Nevertheless, with a view to entry the Admin Dashboard for subsite.instance.com
, I have to add outline('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']);
to my wp-config.php
After including outline('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']);
to my wp-config.php
, wp-cli begins to throw a bug bug that’s practically a decade previous:
PHP Discover: Undefined index: HTTP_HOST in phar:///usr/native/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1277) : eval()'d code on line 106
I discovered this github thread from 2013 that has a number of workarounds, however I wish to know if there’s a newer / environment friendly resolution to drawback?
https://github.com/wp-cli/wp-cli/points/730
appears odd to use options which are practically a decade previous..
Any ideas?