'Version']); return $plugin_info['Version']; } public function getKeyValueStore() { return new KeyValueStoreImplementation(); } public function getHostURLs() { return new HostURLsImplementation(); } public function getInstallNoticeRenderer() { return new InstallNoticeRendererImplementation(); } public function getNonce() { return NonceCheckerImplementation::makeNonce(); } public function getNonceChecker() { return new NonceCheckerImplementation(); } public function getPhastUser() { return new PhastUserImplementation(); } public function getSecurityTokenRoot() { if (defined('AUTH_KEY')) { return AUTH_KEY; } return null; } public function onPhastConfigurationLoad(array $config) { $nonce = apply_filters('phastpress_csp_nonce', null); if ($nonce !== null) { $config['csp']['nonce'] = $nonce; } return $config; } }