Submit
Path:
~
/
home
/
getwphos
/
www
/
chemex
/
wp-content
/
plugins
/
woocommerce
/
vendor
/
automattic
/
jetpack-connection
/
src
/
File Content:
class-tokens-locks.php
<?php /** * The Jetpack Connection Tokens Locks class file. * * @package automattic/jetpack-connection */ namespace Automattic\Jetpack\Connection; /** * * Jetpack Connection tokens cleanup during migration. * This class encapsulates plugin or tool specific code that activates token lock upon migration. * * The connection tokens are locked to the current domain. * If the database is imported on another site (domain name doesn't match), the tokens get removed. * * @see https://github.com/Automattic/jetpack/pull/23597 * @see \Automattic\Jetpack\Connection\Tokens::is_locked() */ class Tokens_Locks { /** * Whether the class has been initialized. * * @var bool */ private static $is_initialized = false; /** * Run the initializers if they haven't been run already. */ public function __construct() { if ( static::$is_initialized ) { return; } $this->init_aiowpm(); static::$is_initialized = true; } /** * Set the token lock for AIOWPM plugin export. * * @param array $params The filter parameters. * * @return array */ public function aiowpm_set_lock( $params ) { ( new Tokens() )->set_lock(); return $params; } /** * Remove the token lock for AIOWPM plugin export. * * @param array $params The filter parameters. * * @return array */ public function aiowpm_remove_lock( $params ) { ( new Tokens() )->remove_lock(); return $params; } /** * Initialize the All-in-One-WP-Migration plugin hooks. * * @return void */ private function init_aiowpm() { add_filter( 'ai1wm_export', array( $this, 'aiowpm_set_lock' ), 180 ); add_filter( 'ai1wm_export', array( $this, 'aiowpm_remove_lock' ), 250 ); } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
identity-crisis
---
0755
sso
---
0755
webhooks
---
0755
class-authorize-json-api.php
8900 bytes
0644
class-client.php
16207 bytes
0644
class-connection-assets.php
900 bytes
0644
class-connection-notice.php
8043 bytes
0644
class-error-handler.php
22413 bytes
0644
class-heartbeat.php
8006 bytes
0644
class-initial-state.php
1932 bytes
0644
class-manager.php
85549 bytes
0644
class-nonce-handler.php
5812 bytes
0644
class-package-version-tracker.php
4922 bytes
0644
class-package-version.php
647 bytes
0644
class-partner-coupon.php
11197 bytes
0644
class-partner.php
5072 bytes
0644
class-plugin-storage.php
7741 bytes
0644
class-plugin.php
1881 bytes
0644
class-rest-authentication.php
5929 bytes
0644
class-rest-connector.php
31700 bytes
0644
class-secrets.php
8537 bytes
0644
class-server-sandbox.php
7863 bytes
0644
class-terms-of-service.php
2798 bytes
0644
class-tokens-locks.php
1699 bytes
0644
class-tokens.php
21353 bytes
0644
class-tracking.php
10002 bytes
0644
class-urls.php
5091 bytes
0644
class-utils.php
3922 bytes
0644
class-webhooks.php
6871 bytes
0644
class-xmlrpc-async-call.php
2685 bytes
0644
class-xmlrpc-connector.php
1872 bytes
0644
interface-manager.php
298 bytes
0644
N4ST4R_ID | Naxtarrr