Version Description
Download this release
Release Info
Developer | samiff |
Plugin | Jetpack by WordPress.com |
Version | 10.8-a.5 |
Comparing to | |
See all releases |
Code changes from version 10.8-a.3 to 10.8-a.5
- composer.json +1 -1
- jetpack.php +2 -2
- jetpack_vendor/i18n-map.php +8 -8
- vendor/composer/installed.json +8 -8
- vendor/composer/installed.php +3 -3
- vendor/composer/jetpack_autoload_classmap.php +25 -25
- vendor/jetpack-autoloader/class-autoloader.php +0 -7
- vendor/jetpack-autoloader/class-container.php +0 -1
- vendor/jetpack-autoloader/class-upgrade-handler.php +0 -60
- vendor/jetpack-autoloader/class-version-loader.php +0 -17
composer.json
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
"automattic/jetpack-a8c-mc-stats": "^1.4",
|
15 |
"automattic/jetpack-abtest": "^1.9",
|
16 |
"automattic/jetpack-assets": "^1.17",
|
17 |
-
"automattic/jetpack-autoloader": "^2.
|
18 |
"automattic/jetpack-backup": "^1.2",
|
19 |
"automattic/jetpack-blocks": "^1.4",
|
20 |
"automattic/jetpack-compat": "^1.6",
|
14 |
"automattic/jetpack-a8c-mc-stats": "^1.4",
|
15 |
"automattic/jetpack-abtest": "^1.9",
|
16 |
"automattic/jetpack-assets": "^1.17",
|
17 |
+
"automattic/jetpack-autoloader": "^2.10",
|
18 |
"automattic/jetpack-backup": "^1.2",
|
19 |
"automattic/jetpack-blocks": "^1.4",
|
20 |
"automattic/jetpack-compat": "^1.6",
|
jetpack.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://jetpack.com
|
5 |
* Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things.
|
6 |
* Author: Automattic
|
7 |
-
* Version: 10.8-a.
|
8 |
* Author URI: https://jetpack.com
|
9 |
* License: GPL2+
|
10 |
* Text Domain: jetpack
|
@@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
32 |
|
33 |
define( 'JETPACK__MINIMUM_WP_VERSION', '5.8' );
|
34 |
define( 'JETPACK__MINIMUM_PHP_VERSION', '5.6' );
|
35 |
-
define( 'JETPACK__VERSION', '10.8-a.
|
36 |
|
37 |
/**
|
38 |
* Constant used to fetch the connection owner token
|
4 |
* Plugin URI: https://jetpack.com
|
5 |
* Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things.
|
6 |
* Author: Automattic
|
7 |
+
* Version: 10.8-a.5
|
8 |
* Author URI: https://jetpack.com
|
9 |
* License: GPL2+
|
10 |
* Text Domain: jetpack
|
32 |
|
33 |
define( 'JETPACK__MINIMUM_WP_VERSION', '5.8' );
|
34 |
define( 'JETPACK__MINIMUM_PHP_VERSION', '5.6' );
|
35 |
+
define( 'JETPACK__VERSION', '10.8-a.5' );
|
36 |
|
37 |
/**
|
38 |
* Constant used to fetch the connection owner token
|
jetpack_vendor/i18n-map.php
CHANGED
@@ -40,14 +40,6 @@ return array(
|
|
40 |
'path' => 'jetpack_vendor/automattic/jetpack-config',
|
41 |
'ver' => '1.6.1',
|
42 |
),
|
43 |
-
'jetpack-connection-ui' => array(
|
44 |
-
'path' => 'jetpack_vendor/automattic/jetpack-connection-ui',
|
45 |
-
'ver' => '2.3.9',
|
46 |
-
),
|
47 |
-
'jetpack-jitm' => array(
|
48 |
-
'path' => 'jetpack_vendor/automattic/jetpack-jitm',
|
49 |
-
'ver' => '2.2.8',
|
50 |
-
),
|
51 |
'jetpack-lazy-images' => array(
|
52 |
'path' => 'jetpack_vendor/automattic/jetpack-lazy-images',
|
53 |
'ver' => '2.1.7',
|
@@ -60,6 +52,14 @@ return array(
|
|
60 |
'path' => 'jetpack_vendor/automattic/jetpack-admin-ui',
|
61 |
'ver' => '0.2.5',
|
62 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
'jetpack-my-jetpack' => array(
|
64 |
'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack',
|
65 |
'ver' => '0.6.8',
|
40 |
'path' => 'jetpack_vendor/automattic/jetpack-config',
|
41 |
'ver' => '1.6.1',
|
42 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
'jetpack-lazy-images' => array(
|
44 |
'path' => 'jetpack_vendor/automattic/jetpack-lazy-images',
|
45 |
'ver' => '2.1.7',
|
52 |
'path' => 'jetpack_vendor/automattic/jetpack-admin-ui',
|
53 |
'ver' => '0.2.5',
|
54 |
),
|
55 |
+
'jetpack-connection-ui' => array(
|
56 |
+
'path' => 'jetpack_vendor/automattic/jetpack-connection-ui',
|
57 |
+
'ver' => '2.3.9',
|
58 |
+
),
|
59 |
+
'jetpack-jitm' => array(
|
60 |
+
'path' => 'jetpack_vendor/automattic/jetpack-jitm',
|
61 |
+
'ver' => '2.2.8',
|
62 |
+
),
|
63 |
'jetpack-my-jetpack' => array(
|
64 |
'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack',
|
65 |
'ver' => '0.6.8',
|
vendor/composer/installed.json
CHANGED
@@ -209,17 +209,17 @@
|
|
209 |
},
|
210 |
{
|
211 |
"name": "automattic/jetpack-autoloader",
|
212 |
-
"version": "v2.
|
213 |
-
"version_normalized": "2.
|
214 |
"source": {
|
215 |
"type": "git",
|
216 |
"url": "https://github.com/Automattic/jetpack-autoloader.git",
|
217 |
-
"reference": "
|
218 |
},
|
219 |
"dist": {
|
220 |
"type": "zip",
|
221 |
-
"url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/
|
222 |
-
"reference": "
|
223 |
"shasum": ""
|
224 |
},
|
225 |
"require": {
|
@@ -229,7 +229,7 @@
|
|
229 |
"automattic/jetpack-changelogger": "^3.0",
|
230 |
"yoast/phpunit-polyfills": "1.0.3"
|
231 |
},
|
232 |
-
"time": "2022-03-
|
233 |
"type": "composer-plugin",
|
234 |
"extra": {
|
235 |
"autotagger": true,
|
@@ -239,7 +239,7 @@
|
|
239 |
"link-template": "https://github.com/Automattic/jetpack-autoloader/compare/v${old}...v${new}"
|
240 |
},
|
241 |
"branch-alias": {
|
242 |
-
"dev-master": "2.
|
243 |
}
|
244 |
},
|
245 |
"installation-source": "dist",
|
@@ -257,7 +257,7 @@
|
|
257 |
],
|
258 |
"description": "Creates a custom autoloader for a plugin or theme.",
|
259 |
"support": {
|
260 |
-
"source": "https://github.com/Automattic/jetpack-autoloader/tree/v2.
|
261 |
},
|
262 |
"install-path": "../automattic/jetpack-autoloader"
|
263 |
},
|
209 |
},
|
210 |
{
|
211 |
"name": "automattic/jetpack-autoloader",
|
212 |
+
"version": "v2.10.13",
|
213 |
+
"version_normalized": "2.10.13.0",
|
214 |
"source": {
|
215 |
"type": "git",
|
216 |
"url": "https://github.com/Automattic/jetpack-autoloader.git",
|
217 |
+
"reference": "a4a7e59ff1471c4890c238379140f03a664a74f9"
|
218 |
},
|
219 |
"dist": {
|
220 |
"type": "zip",
|
221 |
+
"url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/a4a7e59ff1471c4890c238379140f03a664a74f9",
|
222 |
+
"reference": "a4a7e59ff1471c4890c238379140f03a664a74f9",
|
223 |
"shasum": ""
|
224 |
},
|
225 |
"require": {
|
229 |
"automattic/jetpack-changelogger": "^3.0",
|
230 |
"yoast/phpunit-polyfills": "1.0.3"
|
231 |
},
|
232 |
+
"time": "2022-03-01T20:37:25+00:00",
|
233 |
"type": "composer-plugin",
|
234 |
"extra": {
|
235 |
"autotagger": true,
|
239 |
"link-template": "https://github.com/Automattic/jetpack-autoloader/compare/v${old}...v${new}"
|
240 |
},
|
241 |
"branch-alias": {
|
242 |
+
"dev-master": "2.10.x-dev"
|
243 |
}
|
244 |
},
|
245 |
"installation-source": "dist",
|
257 |
],
|
258 |
"description": "Creates a custom autoloader for a plugin or theme.",
|
259 |
"support": {
|
260 |
+
"source": "https://github.com/Automattic/jetpack-autoloader/tree/v2.10.13"
|
261 |
},
|
262 |
"install-path": "../automattic/jetpack-autoloader"
|
263 |
},
|
vendor/composer/installed.php
CHANGED
@@ -56,12 +56,12 @@
|
|
56 |
'dev_requirement' => false,
|
57 |
),
|
58 |
'automattic/jetpack-autoloader' => array(
|
59 |
-
'pretty_version' => 'v2.
|
60 |
-
'version' => '2.
|
61 |
'type' => 'composer-plugin',
|
62 |
'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
|
63 |
'aliases' => array(),
|
64 |
-
'reference' => '
|
65 |
'dev_requirement' => false,
|
66 |
),
|
67 |
'automattic/jetpack-backup' => array(
|
56 |
'dev_requirement' => false,
|
57 |
),
|
58 |
'automattic/jetpack-autoloader' => array(
|
59 |
+
'pretty_version' => 'v2.10.13',
|
60 |
+
'version' => '2.10.13.0',
|
61 |
'type' => 'composer-plugin',
|
62 |
'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
|
63 |
'aliases' => array(),
|
64 |
+
'reference' => 'a4a7e59ff1471c4890c238379140f03a664a74f9',
|
65 |
'dev_requirement' => false,
|
66 |
),
|
67 |
'automattic/jetpack-backup' => array(
|
vendor/composer/jetpack_autoload_classmap.php
CHANGED
@@ -7,23 +7,23 @@ $baseDir = dirname($vendorDir);
|
|
7 |
|
8 |
return array(
|
9 |
'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array(
|
10 |
-
'version' => '2.
|
11 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php'
|
12 |
),
|
13 |
'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
|
14 |
-
'version' => '2.
|
15 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
|
16 |
),
|
17 |
'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
|
18 |
-
'version' => '2.
|
19 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
|
20 |
),
|
21 |
'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
|
22 |
-
'version' => '2.
|
23 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
|
24 |
),
|
25 |
'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array(
|
26 |
-
'version' => '2.
|
27 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php'
|
28 |
),
|
29 |
'Twitter\\Text\\EmojiRegex' => array(
|
@@ -250,14 +250,6 @@ return array(
|
|
250 |
'version' => '0.6.8.0',
|
251 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-products.php'
|
252 |
),
|
253 |
-
'Automattic\\Jetpack\\Licensing' => array(
|
254 |
-
'version' => '1.6.3.0',
|
255 |
-
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-licensing/src/class-licensing.php'
|
256 |
-
),
|
257 |
-
'Automattic\\Jetpack\\Jetpack_Lazy_Images' => array(
|
258 |
-
'version' => '2.1.7.0',
|
259 |
-
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-lazy-images/src/lazy-images.php'
|
260 |
-
),
|
261 |
'Automattic\\Jetpack\\JITMS\\JITM' => array(
|
262 |
'version' => '2.2.8.0',
|
263 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-jitm/src/class-jitm.php'
|
@@ -274,10 +266,6 @@ return array(
|
|
274 |
'version' => '2.2.8.0',
|
275 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-jitm/src/class-post-connection-jitm.php'
|
276 |
),
|
277 |
-
'Automattic\\Jetpack\\Fonts\\Google_Fonts_Provider' => array(
|
278 |
-
'version' => '0.1.0.0',
|
279 |
-
'path' => $vendorDir . '/automattic/jetpack-google-fonts-provider/src/class-google-fonts-provider.php'
|
280 |
-
),
|
281 |
'Automattic\\Jetpack\\ConnectionUI\\Admin' => array(
|
282 |
'version' => '2.3.9.0',
|
283 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-connection-ui/src/class-admin.php'
|
@@ -286,6 +274,18 @@ return array(
|
|
286 |
'version' => '2.3.9.0',
|
287 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-connection-ui/src/class-initial-state.php'
|
288 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
'Automattic\\Jetpack\\Config' => array(
|
290 |
'version' => '1.6.1.0',
|
291 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-config/src/class-config.php'
|
@@ -346,6 +346,14 @@ return array(
|
|
346 |
'version' => '1.0.1.0',
|
347 |
'path' => $vendorDir . '/wikimedia/aho-corasick/src/MultiStringMatcher.php'
|
348 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
'Automattic\\Jetpack\\Admin_UI\\Admin_Menu' => array(
|
350 |
'version' => '0.2.5.0',
|
351 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-admin-ui/src/class-admin-menu.php'
|
@@ -358,14 +366,6 @@ return array(
|
|
358 |
'version' => '0.1.0.0',
|
359 |
'path' => $vendorDir . '/automattic/jetpack-plugins-installer/src/class-automatic-install-skin.php'
|
360 |
),
|
361 |
-
'Automattic\\Jetpack\\Partner_Coupon' => array(
|
362 |
-
'version' => '1.7.2.0',
|
363 |
-
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-partner/src/class-partner-coupon.php'
|
364 |
-
),
|
365 |
-
'Automattic\\Jetpack\\Partner' => array(
|
366 |
-
'version' => '1.7.2.0',
|
367 |
-
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-partner/src/class-partner.php'
|
368 |
-
),
|
369 |
'Automattic\\Jetpack\\Sync\\Replicastore_Interface' => array(
|
370 |
'version' => '1.30.2.0',
|
371 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-sync/src/interface-replicastore.php'
|
7 |
|
8 |
return array(
|
9 |
'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array(
|
10 |
+
'version' => '2.10.13.0',
|
11 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php'
|
12 |
),
|
13 |
'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
|
14 |
+
'version' => '2.10.13.0',
|
15 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
|
16 |
),
|
17 |
'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
|
18 |
+
'version' => '2.10.13.0',
|
19 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
|
20 |
),
|
21 |
'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
|
22 |
+
'version' => '2.10.13.0',
|
23 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
|
24 |
),
|
25 |
'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array(
|
26 |
+
'version' => '2.10.13.0',
|
27 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php'
|
28 |
),
|
29 |
'Twitter\\Text\\EmojiRegex' => array(
|
250 |
'version' => '0.6.8.0',
|
251 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-products.php'
|
252 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
'Automattic\\Jetpack\\JITMS\\JITM' => array(
|
254 |
'version' => '2.2.8.0',
|
255 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-jitm/src/class-jitm.php'
|
266 |
'version' => '2.2.8.0',
|
267 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-jitm/src/class-post-connection-jitm.php'
|
268 |
),
|
|
|
|
|
|
|
|
|
269 |
'Automattic\\Jetpack\\ConnectionUI\\Admin' => array(
|
270 |
'version' => '2.3.9.0',
|
271 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-connection-ui/src/class-admin.php'
|
274 |
'version' => '2.3.9.0',
|
275 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-connection-ui/src/class-initial-state.php'
|
276 |
),
|
277 |
+
'Automattic\\Jetpack\\Licensing' => array(
|
278 |
+
'version' => '1.6.3.0',
|
279 |
+
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-licensing/src/class-licensing.php'
|
280 |
+
),
|
281 |
+
'Automattic\\Jetpack\\Jetpack_Lazy_Images' => array(
|
282 |
+
'version' => '2.1.7.0',
|
283 |
+
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-lazy-images/src/lazy-images.php'
|
284 |
+
),
|
285 |
+
'Automattic\\Jetpack\\Fonts\\Google_Fonts_Provider' => array(
|
286 |
+
'version' => '0.1.0.0',
|
287 |
+
'path' => $vendorDir . '/automattic/jetpack-google-fonts-provider/src/class-google-fonts-provider.php'
|
288 |
+
),
|
289 |
'Automattic\\Jetpack\\Config' => array(
|
290 |
'version' => '1.6.1.0',
|
291 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-config/src/class-config.php'
|
346 |
'version' => '1.0.1.0',
|
347 |
'path' => $vendorDir . '/wikimedia/aho-corasick/src/MultiStringMatcher.php'
|
348 |
),
|
349 |
+
'Automattic\\Jetpack\\Partner_Coupon' => array(
|
350 |
+
'version' => '1.7.2.0',
|
351 |
+
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-partner/src/class-partner-coupon.php'
|
352 |
+
),
|
353 |
+
'Automattic\\Jetpack\\Partner' => array(
|
354 |
+
'version' => '1.7.2.0',
|
355 |
+
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-partner/src/class-partner.php'
|
356 |
+
),
|
357 |
'Automattic\\Jetpack\\Admin_UI\\Admin_Menu' => array(
|
358 |
'version' => '0.2.5.0',
|
359 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-admin-ui/src/class-admin-menu.php'
|
366 |
'version' => '0.1.0.0',
|
367 |
'path' => $vendorDir . '/automattic/jetpack-plugins-installer/src/class-automatic-install-skin.php'
|
368 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
'Automattic\\Jetpack\\Sync\\Replicastore_Interface' => array(
|
370 |
'version' => '1.30.2.0',
|
371 |
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-sync/src/interface-replicastore.php'
|
vendor/jetpack-autoloader/class-autoloader.php
CHANGED
@@ -85,13 +85,6 @@ class Autoloader {
|
|
85 |
// Register a shutdown handler to clean up the autoloader.
|
86 |
$hook_manager->add_action( 'shutdown', new Shutdown_Handler( $plugins_handler, $cached_plugins, $was_included_by_autoloader ) );
|
87 |
|
88 |
-
// Register an upgrade handler to handle plugin upgrades.
|
89 |
-
$upgrade_handler = new Upgrade_Handler();
|
90 |
-
$hook_manager->add_filter( 'upgrader_pre_install', array( $upgrade_handler, 'upgrader_pre_install' ), 10, 2 );
|
91 |
-
// wp-cli never fires `delete_plugin` but always fires `pre_uninstall_plugin`, while core only conditionally fires `pre_uninstall_plugin` but always fires `delete_plugin`.
|
92 |
-
$hook_manager->add_action( 'delete_plugin', array( $upgrade_handler, 'delete_plugin' ), 10, 1 );
|
93 |
-
$hook_manager->add_action( 'pre_uninstall_plugin', array( $upgrade_handler, 'delete_plugin' ), 10, 1 );
|
94 |
-
|
95 |
// phpcs:enable Generic.Commenting.DocComment.MissingShort
|
96 |
}
|
97 |
}
|
85 |
// Register a shutdown handler to clean up the autoloader.
|
86 |
$hook_manager->add_action( 'shutdown', new Shutdown_Handler( $plugins_handler, $cached_plugins, $was_included_by_autoloader ) );
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
// phpcs:enable Generic.Commenting.DocComment.MissingShort
|
89 |
}
|
90 |
}
|
vendor/jetpack-autoloader/class-container.php
CHANGED
@@ -127,7 +127,6 @@ class Container {
|
|
127 |
// Register any classes that we will use elsewhere.
|
128 |
require_once __DIR__ . '/class-version-loader.php';
|
129 |
require_once __DIR__ . '/class-shutdown-handler.php';
|
130 |
-
require_once __DIR__ . '/class-upgrade-handler.php';
|
131 |
}
|
132 |
|
133 |
/**
|
127 |
// Register any classes that we will use elsewhere.
|
128 |
require_once __DIR__ . '/class-version-loader.php';
|
129 |
require_once __DIR__ . '/class-shutdown-handler.php';
|
|
|
130 |
}
|
131 |
|
132 |
/**
|
vendor/jetpack-autoloader/class-upgrade-handler.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* This file was automatically generated by automattic/jetpack-autoloader.
|
4 |
-
*
|
5 |
-
* @package automattic/jetpack-autoloader
|
6 |
-
*/
|
7 |
-
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ10_8_a_3;
|
9 |
-
|
10 |
-
// phpcs:ignore
|
11 |
-
|
12 |
-
/**
|
13 |
-
* This class handles plugin upgrades and uninstalls.
|
14 |
-
*/
|
15 |
-
class Upgrade_Handler {
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Handles a plugin upgrade.
|
19 |
-
*
|
20 |
-
* @param bool|WP_Error $response Response.
|
21 |
-
* @param array $hook_extra Extra arguments passed to hooked filters.
|
22 |
-
* @return bool|WP_Error Response
|
23 |
-
*/
|
24 |
-
public function upgrader_pre_install( $response, $hook_extra ) {
|
25 |
-
if ( isset( $hook_extra['plugin'] ) ) {
|
26 |
-
$this->load_plugin_classes( $hook_extra['plugin'] );
|
27 |
-
}
|
28 |
-
return $response;
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Handles a plugin deletion.
|
33 |
-
*
|
34 |
-
* @param string $plugin_file Path to the plugin file relative to the plugins directory.
|
35 |
-
*/
|
36 |
-
public function delete_plugin( $plugin_file ) {
|
37 |
-
$this->load_plugin_classes( $plugin_file );
|
38 |
-
}
|
39 |
-
|
40 |
-
/**
|
41 |
-
* Load classes for a plugin.
|
42 |
-
*
|
43 |
-
* The intention here is to avoid errors on upgrade when a file is deleted,
|
44 |
-
* by loading everything the autoloader knows about before the upgrade
|
45 |
-
* happens.
|
46 |
-
*
|
47 |
-
* Note this can't load classes autoloaded by PSR-0 or PSR-4 unless an
|
48 |
-
* optimized autoloader was used.
|
49 |
-
*
|
50 |
-
* See p9dueE-4c4-p2 for internal discussion.
|
51 |
-
*
|
52 |
-
* @param string $plugin Path to the plugin file relative to the plugins directory.
|
53 |
-
*/
|
54 |
-
private function load_plugin_classes( $plugin ) {
|
55 |
-
global $jetpack_autoloader_loader;
|
56 |
-
if ( isset( $jetpack_autoloader_loader ) && defined( 'WP_PLUGIN_DIR' ) ) {
|
57 |
-
$jetpack_autoloader_loader->load_classes_in_path( WP_PLUGIN_DIR . '/' . dirname( $plugin ) );
|
58 |
-
}
|
59 |
-
}
|
60 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/jetpack-autoloader/class-version-loader.php
CHANGED
@@ -93,23 +93,6 @@ class Version_Loader {
|
|
93 |
}
|
94 |
}
|
95 |
|
96 |
-
/**
|
97 |
-
* Load all of the (non-PSR-4) classes located under a path.
|
98 |
-
*
|
99 |
-
* @param string $path Path.
|
100 |
-
*/
|
101 |
-
public function load_classes_in_path( $path ) {
|
102 |
-
$path = rtrim( $path, '/' ) . '/';
|
103 |
-
$l = strlen( $path );
|
104 |
-
foreach ( $this->classmap as $classname => $data ) {
|
105 |
-
if ( substr( $data['path'], 0, $l ) === $path && file_exists( $data['path'] ) ) {
|
106 |
-
// Use the autoloader instead of loading directly in case there's a PSR-4 class or
|
107 |
-
// something masking it.
|
108 |
-
class_exists( $classname, true );
|
109 |
-
}
|
110 |
-
}
|
111 |
-
}
|
112 |
-
|
113 |
/**
|
114 |
* Compares different class sources and returns the newest.
|
115 |
*
|
93 |
}
|
94 |
}
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
/**
|
97 |
* Compares different class sources and returns the newest.
|
98 |
*
|