26 lines
731 B
PHP
26 lines
731 B
PHP
<?php
|
|
|
|
namespace Automattic\Jetpack_Boost\REST_API\Permissions;
|
|
|
|
use Automattic\Jetpack\Connection\Rest_Authentication;
|
|
use Automattic\Jetpack_Boost\REST_API\Contracts\Permission;
|
|
|
|
class Signed_With_Blog_Token implements Permission {
|
|
|
|
// $request is required to adhere to the contract.
|
|
//phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
|
public function verify( $request ) {
|
|
|
|
/**
|
|
* Filters the signed with blog token verification.
|
|
*
|
|
* @param bool $is_signed True if the request is signed with the blog token, false otherwise.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
return apply_filters(
|
|
'jetpack_boost_signed_with_blog_token_verify',
|
|
Rest_Authentication::is_signed_with_blog_token()
|
|
);
|
|
}
|
|
}
|