Skip to content

Commit

Permalink
use function WP_Forge\Helpers\dataGet; Fix #61
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Mar 12, 2024
1 parent 0608197 commit 69f811c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace NewfoldLabs\WP\Module\Data;

use wpscholar\Url;
use function WP_Forge\Helpers\dataGet;

/**
* Main class for the data plugin module
Expand Down Expand Up @@ -128,7 +129,7 @@ public function authenticate( $status ) {
'method' => $_SERVER['REQUEST_METHOD'],
'url' => Url::getCurrentUrl(),
'body' => file_get_contents( 'php://input' ),
'timestamp' => data_get( getallheaders(), 'X-Timestamp' ),
'timestamp' => dataGet( getallheaders(), 'X-Timestamp' ),
);

$hash = hash( 'sha256', wp_json_encode( $data ) );
Expand Down

0 comments on commit 69f811c

Please sign in to comment.