installed plugin Jetpack Protect
version 1.0.2
This commit is contained in:
wp-content/plugins/jetpack-protect
CHANGELOG.mdLICENSE.txtSECURITY.mdi18n-map.phpreadme.txt
assets
fonts
jetpack-protect.cssbuild
composer.jsonjetpack-protect.phpjetpack_vendor
automattic
jetpack-a8c-mc-stats
jetpack-admin-ui
jetpack-assets
jetpack-config
jetpack-connection
CHANGELOG.mdLICENSE.txtSECURITY.mdTRACKING.mdcomposer.json
dist
legacy
class-jetpack-ixr-client.phpclass-jetpack-ixr-clientmulticall.phpclass-jetpack-options.phpclass-jetpack-signature.phpclass-jetpack-tracks-client.phpclass-jetpack-tracks-event.phpclass-jetpack-xmlrpc-server.php
src
class-client.phpclass-error-handler.phpclass-heartbeat.phpclass-initial-state.phpclass-manager.phpclass-nonce-handler.phpclass-package-version-tracker.phpclass-package-version.phpclass-plugin-storage.phpclass-plugin.phpclass-rest-authentication.phpclass-rest-connector.phpclass-secrets.phpclass-server-sandbox.phpclass-terms-of-service.phpclass-tokens.phpclass-tracking.phpclass-urls.phpclass-utils.phpclass-webhooks.phpclass-xmlrpc-async-call.phpclass-xmlrpc-connector.phpinterface-manager.php
js
webhooks
jetpack-constants
jetpack-identity-crisis
jetpack-licensing
jetpack-logo
jetpack-my-jetpack
CHANGELOG.mdLICENSE.txtSECURITY.mdcomposer.json
build
images
apple-92dacafad84e79708a74.svgboost-a54137485af36fdffe9c.pngconnect-f27775ac15cf885713c2.pngcrm-7e7684ae2c40327d8fed.pngdisconnect-confirm-dc9fe8f5c68cfd1320e0.jpgdisconnect-thanks-5873bfac56a9bd7322cd.jpgextras-26daf36507504c96d066.pnggoogle-dec2a429bf1d8e83f9ad.svgjetpack-license-activation-with-lock-7b01c1a4cf56de799cd7.pngjetpack-license-activation-with-success-cad524ede4e793cc0ece.pngsearch-f9756bd9c926d905fe70.pngvideopress-9591093a9a238cc48a35.pngwordpress-1fc3e0ba6c52e9707900.svg
index.asset.phpindex.cssindex.jsindex.js.LICENSE.txtindex.rtl.csssrc
jetpack-password-checker
jetpack-plugins-installer
jetpack-redirect
jetpack-roles
jetpack-status
jetpack-sync
CHANGELOG.mdLICENSE.txtSECURITY.mdcomposer.json
src
class-actions.phpclass-data-settings.phpclass-dedicated-sender.phpclass-default-filter-settings.phpclass-defaults.phpclass-functions.phpclass-health.phpclass-json-deflate-array-codec.phpclass-listener.phpclass-lock.phpclass-main.phpclass-modules.phpclass-package-version.phpclass-queue-buffer.phpclass-queue.phpclass-replicastore.phpclass-rest-endpoints.phpclass-rest-sender.phpclass-sender.phpclass-server.phpclass-settings.phpclass-simple-codec.phpclass-users.phpclass-utils.phpinterface-codec.phpinterface-replicastore.php
modules
class-attachments.phpclass-callables.phpclass-comments.phpclass-constants.phpclass-full-sync-immediately.phpclass-full-sync.phpclass-import.phpclass-menus.phpclass-meta.phpclass-module.phpclass-network-options.phpclass-options.phpclass-plugins.phpclass-posts.phpclass-protect.phpclass-search.phpclass-stats.phpclass-term-relationships.phpclass-terms.phpclass-themes.phpclass-updates.phpclass-users.phpclass-woocommerce.phpclass-wp-super-cache.php
replicastore
src
vendor
autoload.phpautoload_packages.php
composer
ClassLoader.phpInstalledVersions.phpLICENSEautoload_classmap.phpautoload_files.phpautoload_namespaces.phpautoload_psr4.phpautoload_real.phpautoload_static.phpinstalled.jsoninstalled.phpjetpack_autoload_classmap.phpjetpack_autoload_filemap.php
jetpack-autoloader
class-autoloader-handler.phpclass-autoloader-locator.phpclass-autoloader.phpclass-container.phpclass-hook-manager.phpclass-latest-autoloader-guard.phpclass-manifest-reader.phpclass-path-processor.phpclass-php-autoloader.phpclass-plugin-locator.phpclass-plugins-handler.phpclass-shutdown-handler.phpclass-version-loader.phpclass-version-selector.php
147
wp-content/plugins/jetpack-protect/vendor/jetpack-autoloader/class-autoloader-handler.php
vendored
Normal file
147
wp-content/plugins/jetpack-protect/vendor/jetpack-autoloader/class-autoloader-handler.php
vendored
Normal file
@ -0,0 +1,147 @@
|
||||
<?php
|
||||
/**
|
||||
* This file was automatically generated by automattic/jetpack-autoloader.
|
||||
*
|
||||
* @package automattic/jetpack-autoloader
|
||||
*/
|
||||
|
||||
namespace Automattic\Jetpack\Autoloader\jpc4802e05bbcf59fd3b6350e8d3e5482c_protectⓥ1_0_2;
|
||||
|
||||
// phpcs:ignore
|
||||
|
||||
use Automattic\Jetpack\Autoloader\AutoloadGenerator;
|
||||
|
||||
/**
|
||||
* This class selects the package version for the autoloader.
|
||||
*/
|
||||
class Autoloader_Handler {
|
||||
|
||||
/**
|
||||
* The PHP_Autoloader instance.
|
||||
*
|
||||
* @var PHP_Autoloader
|
||||
*/
|
||||
private $php_autoloader;
|
||||
|
||||
/**
|
||||
* The Hook_Manager instance.
|
||||
*
|
||||
* @var Hook_Manager
|
||||
*/
|
||||
private $hook_manager;
|
||||
|
||||
/**
|
||||
* The Manifest_Reader instance.
|
||||
*
|
||||
* @var Manifest_Reader
|
||||
*/
|
||||
private $manifest_reader;
|
||||
|
||||
/**
|
||||
* The Version_Selector instance.
|
||||
*
|
||||
* @var Version_Selector
|
||||
*/
|
||||
private $version_selector;
|
||||
|
||||
/**
|
||||
* The constructor.
|
||||
*
|
||||
* @param PHP_Autoloader $php_autoloader The PHP_Autoloader instance.
|
||||
* @param Hook_Manager $hook_manager The Hook_Manager instance.
|
||||
* @param Manifest_Reader $manifest_reader The Manifest_Reader instance.
|
||||
* @param Version_Selector $version_selector The Version_Selector instance.
|
||||
*/
|
||||
public function __construct( $php_autoloader, $hook_manager, $manifest_reader, $version_selector ) {
|
||||
$this->php_autoloader = $php_autoloader;
|
||||
$this->hook_manager = $hook_manager;
|
||||
$this->manifest_reader = $manifest_reader;
|
||||
$this->version_selector = $version_selector;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks to see whether or not an autoloader is currently in the process of initializing.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_initializing() {
|
||||
// If no version has been set it means that no autoloader has started initializing yet.
|
||||
global $jetpack_autoloader_latest_version;
|
||||
if ( ! isset( $jetpack_autoloader_latest_version ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// When the version is set but the classmap is not it ALWAYS means that this is the
|
||||
// latest autoloader and is being included by an older one.
|
||||
global $jetpack_packages_classmap;
|
||||
if ( empty( $jetpack_packages_classmap ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Version 2.4.0 added a new global and altered the reset semantics. We need to check
|
||||
// the other global as well since it may also point at initialization.
|
||||
// Note: We don't need to check for the class first because every autoloader that
|
||||
// will set the latest version global requires this class in the classmap.
|
||||
$replacing_version = $jetpack_packages_classmap[ AutoloadGenerator::class ]['version'];
|
||||
if ( $this->version_selector->is_dev_version( $replacing_version ) || version_compare( $replacing_version, '2.4.0.0', '>=' ) ) {
|
||||
global $jetpack_autoloader_loader;
|
||||
if ( ! isset( $jetpack_autoloader_loader ) ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Activates an autoloader using the given plugins and activates it.
|
||||
*
|
||||
* @param string[] $plugins The plugins to initialize the autoloader for.
|
||||
*/
|
||||
public function activate_autoloader( $plugins ) {
|
||||
global $jetpack_packages_psr4;
|
||||
$jetpack_packages_psr4 = array();
|
||||
$this->manifest_reader->read_manifests( $plugins, 'vendor/composer/jetpack_autoload_psr4.php', $jetpack_packages_psr4 );
|
||||
|
||||
global $jetpack_packages_classmap;
|
||||
$jetpack_packages_classmap = array();
|
||||
$this->manifest_reader->read_manifests( $plugins, 'vendor/composer/jetpack_autoload_classmap.php', $jetpack_packages_classmap );
|
||||
|
||||
global $jetpack_packages_filemap;
|
||||
$jetpack_packages_filemap = array();
|
||||
$this->manifest_reader->read_manifests( $plugins, 'vendor/composer/jetpack_autoload_filemap.php', $jetpack_packages_filemap );
|
||||
|
||||
$loader = new Version_Loader(
|
||||
$this->version_selector,
|
||||
$jetpack_packages_classmap,
|
||||
$jetpack_packages_psr4,
|
||||
$jetpack_packages_filemap
|
||||
);
|
||||
|
||||
$this->php_autoloader->register_autoloader( $loader );
|
||||
|
||||
// Now that the autoloader is active we can load the filemap.
|
||||
$loader->load_filemap();
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the active autoloader and all related global state.
|
||||
*/
|
||||
public function reset_autoloader() {
|
||||
$this->php_autoloader->unregister_autoloader();
|
||||
$this->hook_manager->reset();
|
||||
|
||||
// Clear all of the autoloader globals so that older autoloaders don't do anything strange.
|
||||
global $jetpack_autoloader_latest_version;
|
||||
$jetpack_autoloader_latest_version = null;
|
||||
|
||||
global $jetpack_packages_classmap;
|
||||
$jetpack_packages_classmap = array(); // Must be array to avoid exceptions in old autoloaders!
|
||||
|
||||
global $jetpack_packages_psr4;
|
||||
$jetpack_packages_psr4 = array(); // Must be array to avoid exceptions in old autoloaders!
|
||||
|
||||
global $jetpack_packages_filemap;
|
||||
$jetpack_packages_filemap = array(); // Must be array to avoid exceptions in old autoloaders!
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user