?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/plugins/jetpack-boost/app/rest-api/permissions/



?? Go up: /home/webdevt/www/wdp/wp-content/plugins/jetpack-boost/app/rest-api

?? Viewing: class-signed-with-blog-token.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()
		);
	}
}


??

??