Skip to content

Commit

Permalink
Merge pull request #62 from newfold-labs/Fix-renamed-function-in-help…
Browse files Browse the repository at this point in the history
…ers-library

Fix renamed function in helpers library
  • Loading branch information
circlecube authored Mar 13, 2024
2 parents f572368 + 69f811c commit e5b234c
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
},
"require": {
"newfold-labs/wp-module-loader": "^1.0",
"wp-forge/helpers": "^2.0",
"wp-forge/wp-query-builder": "^1.0",
"wp-forge/wp-upgrade-handler": "^1.0",
"wpscholar/url": "^1.2"
Expand Down
142 changes: 141 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 e5b234c

Please sign in to comment.