summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/vendor/autoload_packages.php')
-rw-r--r--plugins/jetpack/vendor/autoload_packages.php27
1 files changed, 4 insertions, 23 deletions
diff --git a/plugins/jetpack/vendor/autoload_packages.php b/plugins/jetpack/vendor/autoload_packages.php
index 3a963857..70bd4cfe 100644
--- a/plugins/jetpack/vendor/autoload_packages.php
+++ b/plugins/jetpack/vendor/autoload_packages.php
@@ -73,26 +73,7 @@ if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) {
if ( isset( $jetpack_packages_classes[ $class_name ] ) ) {
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
- // TODO ideally we shouldn't skip any of these, see: https://github.com/Automattic/jetpack/pull/12646.
- $ignore = in_array(
- $class_name,
- array(
- 'Automattic\Jetpack\JITM',
- 'Automattic\Jetpack\Connection\Manager',
- 'Automattic\Jetpack\Connection\Manager_Interface',
- 'Automattic\Jetpack\Connection\XMLRPC_Connector',
- 'Jetpack_IXR_Client',
- 'Jetpack_Options',
- 'Jetpack_Signature',
- 'Jetpack_XMLRPC_Server',
- 'Automattic\Jetpack\Sync\Main',
- 'Automattic\Jetpack\Constants',
- 'Automattic\Jetpack\Tracking',
- 'Automattic\Jetpack\Plugin\Tracking',
- ),
- true
- );
- if ( ! $ignore && function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) ) {
+ if ( function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) ) {
_doing_it_wrong(
esc_html( $class_name ),
sprintf(
@@ -122,7 +103,7 @@ if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) {
/**
* Prepare all the classes for autoloading.
*/
-function enqueue_packages_e5e1fcbf7e161455e15277144d4cf8d1() {
+function enqueue_packages_3ddf029ed8348ddcc3b8bc31397b655d() {
$class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
foreach ( $class_map as $class_name => $class_info ) {
enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
@@ -131,7 +112,7 @@ function enqueue_packages_e5e1fcbf7e161455e15277144d4cf8d1() {
$autoload_file = __DIR__ . '/composer/autoload_files.php';
$includeFiles = file_exists( $autoload_file )
? require $autoload_file
- : [];
+ : array();
foreach ( $includeFiles as $fileIdentifier => $file ) {
if ( empty( $GLOBALS['__composer_autoload_files'][ $fileIdentifier ] ) ) {
@@ -141,4 +122,4 @@ function enqueue_packages_e5e1fcbf7e161455e15277144d4cf8d1() {
}
}
}
-enqueue_packages_e5e1fcbf7e161455e15277144d4cf8d1();
+enqueue_packages_3ddf029ed8348ddcc3b8bc31397b655d();