this function should not work without $request
This commit is contained in:
parent
5a6f8aff02
commit
5faddba511
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class Signature {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function verify_http_signature( $request = null ) {
|
public static function verify_http_signature( $request ) {
|
||||||
$headers = $request->get_headers();
|
$headers = $request->get_headers();
|
||||||
$actor = isset( json_decode( $request->get_body() )->actor ) ? json_decode( $request->get_body() )->actor : '';
|
$actor = isset( json_decode( $request->get_body() )->actor ) ? json_decode( $request->get_body() )->actor : '';
|
||||||
$headers['(request-target)'][0] = strtolower( $request->get_method() ) . ' /wp-json' . $request->get_route();
|
$headers['(request-target)'][0] = strtolower( $request->get_method() ) . ' /wp-json' . $request->get_route();
|
||||||
|
|
Loading…
Reference in a new issue