Skip to content

Commit

Permalink
Merge pull request #187 from cloudflare/jwineman/PI-1198-wp-48-bug
Browse files Browse the repository at this point in the history
PI-1198: Making consts in Hooks.php more specific to fix bug.
  • Loading branch information
thellimist authored Jun 29, 2017
2 parents 1e9c8b9 + a591389 commit 34da2c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WordPress/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ public function http2ServerPushInit()
/*
* php://input can only be read once before PHP 5.6, try to grab it ONLY if the request
* is coming from the cloudflare proxy. We store it in a global so \CF\WordPress\Proxy
* can act on the request body later on in the script execution.
* can act on the request body later on in the script execution.
*/
public function getCloudflareRequestJSON()
{
if ($_GET['action'] === WP_AJAX_ACTION) {
$GLOBALS[CLOUDFLARE_JSON] = file_get_contents('php://input');
if ($_GET['action'] === self::WP_AJAX_ACTION) {
$GLOBALS[self::CLOUDFLARE_JSON] = file_get_contents('php://input');
}
}
}

0 comments on commit 34da2c5

Please sign in to comment.