- Fixes issue with ucwords() function on older PHP versions

- Updates Supervisor/Daemon to strip port from site_url() when it's
  running on localhost inside a virtual machine :)
This commit is contained in:
MrCasual
2015-11-23 12:56:23 -05:00
parent 149d031b52
commit 3124d6a61b
4 changed files with 33 additions and 9 deletions

View File

@@ -85,7 +85,7 @@ class Daemon {
'user-agent' => 'MailPoet (www.mailpoet.com)'
);
wp_remote_get(
site_url() .
Supervisor::getSiteUrl() .
'/?mailpoet-api&section=queue&action=run&payload=' . urlencode($payload),
$args
);