network_site_url() broken in 4.0.1?
-
We run this snippet of PHP code;
"require( dirname( __FILE__ ) . '/wp-config.php' ); echo site_url();"to determine the site URL of a particular WordPress install on our servers, so we can run the cron tasks out of band. This works great for all WordPress installs except one, which turns out to be a multisite setup.
According to the Codex, calling ‘network_site_url()’ instead should resolve the problem, but that too returns absolutely nothing for the one multisite setup.
Set up a clean install and converted it to multisite according to the Codex instructions, to see if the user had somehow changed something, but the exact same problem occurs again; no value for the site URL.
As far as I can tell, ‘network_site_url()’ should cover both cases? Am I missing something here, going about it the wrong way?
The topic ‘network_site_url() broken in 4.0.1?’ is closed to new replies.