phpcs
This commit is contained in:
parent
30d78417d8
commit
590c990e21
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class Signature {
|
||||||
|
|
||||||
public static function verify_http_signature( $request = null ) {
|
public static function verify_http_signature( $request = null ) {
|
||||||
$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();
|
||||||
|
|
||||||
if ( ! $headers ) {
|
if ( ! $headers ) {
|
||||||
|
|
Loading…
Reference in a new issue