Imagify Image Optimizer - Version 1.9.3.1

Version Description

  • 2019/07/03 =
  • Fix: conflict with plugins using an ancient version of Composer.
Download this release

Release Info

Developer wp_media
Plugin Icon 128x128 Imagify Image Optimizer
Version 1.9.3.1
Comparing to
See all releases

Code changes from version 1.9.3 to 1.9.3.1

composer.json CHANGED
@@ -32,10 +32,10 @@
32
  "require": {
33
  "php": ">=5.4.0",
34
  "a5hleyrich/wp-background-processing": "~1.0",
35
- "composer/installers": "~1.0"
 
36
  },
37
  "require-dev": {
38
- "dangoodman/composer-for-wordpress": "^2.0",
39
  "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
40
  "phpcompatibility/phpcompatibility-wp": "*",
41
  "squizlabs/php_codesniffer": "^3.2",
32
  "require": {
33
  "php": ">=5.4.0",
34
  "a5hleyrich/wp-background-processing": "~1.0",
35
+ "composer/installers": "~1.0",
36
+ "dangoodman/composer-for-wordpress": "^2.0"
37
  },
38
  "require-dev": {
 
39
  "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
40
  "phpcompatibility/phpcompatibility-wp": "*",
41
  "squizlabs/php_codesniffer": "^3.2",
composer.lock CHANGED
@@ -4,7 +4,7 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "32d48d612bdea48360a6edc576c6e046",
8
  "packages": [
9
  {
10
  "name": "a5hleyrich/wp-background-processing",
@@ -161,9 +161,7 @@
161
  "zikula"
162
  ],
163
  "time": "2018-08-27T06:10:37+00:00"
164
- }
165
- ],
166
- "packages-dev": [
167
  {
168
  "name": "dangoodman/composer-for-wordpress",
169
  "version": "2.0.0",
@@ -192,7 +190,9 @@
192
  },
193
  "notification-url": "https://packagist.org/downloads/",
194
  "time": "2018-06-20T15:01:37+00:00"
195
- },
 
 
196
  {
197
  "name": "dealerdirect/phpcodesniffer-composer-installer",
198
  "version": "v0.4.4",
@@ -263,16 +263,16 @@
263
  },
264
  {
265
  "name": "phpcompatibility/php-compatibility",
266
- "version": "9.1.1",
267
  "source": {
268
  "type": "git",
269
  "url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
270
- "reference": "2b63c5d284ab8857f7b1d5c240ddb507a6b2293c"
271
  },
272
  "dist": {
273
  "type": "zip",
274
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/2b63c5d284ab8857f7b1d5c240ddb507a6b2293c",
275
- "reference": "2b63c5d284ab8857f7b1d5c240ddb507a6b2293c",
276
  "shasum": ""
277
  },
278
  "require": {
@@ -286,7 +286,7 @@
286
  "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
287
  },
288
  "suggest": {
289
- "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
290
  "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
291
  },
292
  "type": "phpcodesniffer-standard",
@@ -317,7 +317,7 @@
317
  "phpcs",
318
  "standards"
319
  ],
320
- "time": "2018-12-30T23:16:27+00:00"
321
  },
322
  {
323
  "name": "phpcompatibility/phpcompatibility-paragonie",
@@ -475,12 +475,12 @@
475
  "version": "1.2.1",
476
  "source": {
477
  "type": "git",
478
- "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git",
479
  "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c"
480
  },
481
  "dist": {
482
  "type": "zip",
483
- "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c",
484
  "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c",
485
  "shasum": ""
486
  },
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "cbcf7a4f4ebf8e66f1244021254449fe",
8
  "packages": [
9
  {
10
  "name": "a5hleyrich/wp-background-processing",
161
  "zikula"
162
  ],
163
  "time": "2018-08-27T06:10:37+00:00"
164
+ },
 
 
165
  {
166
  "name": "dangoodman/composer-for-wordpress",
167
  "version": "2.0.0",
190
  },
191
  "notification-url": "https://packagist.org/downloads/",
192
  "time": "2018-06-20T15:01:37+00:00"
193
+ }
194
+ ],
195
+ "packages-dev": [
196
  {
197
  "name": "dealerdirect/phpcodesniffer-composer-installer",
198
  "version": "v0.4.4",
263
  },
264
  {
265
  "name": "phpcompatibility/php-compatibility",
266
+ "version": "9.2.0",
267
  "source": {
268
  "type": "git",
269
  "url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
270
+ "reference": "3db1bf1e28123fd574a4ae2e9a84072826d51b5e"
271
  },
272
  "dist": {
273
  "type": "zip",
274
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/3db1bf1e28123fd574a4ae2e9a84072826d51b5e",
275
+ "reference": "3db1bf1e28123fd574a4ae2e9a84072826d51b5e",
276
  "shasum": ""
277
  },
278
  "require": {
286
  "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
287
  },
288
  "suggest": {
289
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
290
  "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
291
  },
292
  "type": "phpcodesniffer-standard",
317
  "phpcs",
318
  "standards"
319
  ],
320
+ "time": "2019-06-27T19:58:56+00:00"
321
  },
322
  {
323
  "name": "phpcompatibility/phpcompatibility-paragonie",
475
  "version": "1.2.1",
476
  "source": {
477
  "type": "git",
478
+ "url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
479
  "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c"
480
  },
481
  "dist": {
482
  "type": "zip",
483
+ "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c",
484
  "reference": "f328bcafd97377e8e5e5d7b244d5ddbf301a3a5c",
485
  "shasum": ""
486
  },
imagify.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Imagify
4
  * Plugin URI: https://wordpress.org/plugins/imagify/
5
  * Description: Dramaticaly reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth using Imagify, the new most advanced image optimization tool.
6
- * Version: 1.9.3
7
  * Requires PHP: 5.4
8
  * Author: WP Media
9
  * Author URI: https://wp-media.me/
@@ -20,7 +20,7 @@
20
  defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
21
 
22
  // Imagify defines.
23
- define( 'IMAGIFY_VERSION', '1.9.3' );
24
  define( 'IMAGIFY_SLUG', 'imagify' );
25
  define( 'IMAGIFY_FILE', __FILE__ );
26
  define( 'IMAGIFY_PATH', realpath( plugin_dir_path( IMAGIFY_FILE ) ) . '/' );
3
  * Plugin Name: Imagify
4
  * Plugin URI: https://wordpress.org/plugins/imagify/
5
  * Description: Dramaticaly reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth using Imagify, the new most advanced image optimization tool.
6
+ * Version: 1.9.3.1
7
  * Requires PHP: 5.4
8
  * Author: WP Media
9
  * Author URI: https://wp-media.me/
20
  defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
21
 
22
  // Imagify defines.
23
+ define( 'IMAGIFY_VERSION', '1.9.3.1' );
24
  define( 'IMAGIFY_SLUG', 'imagify' );
25
  define( 'IMAGIFY_FILE', __FILE__ );
26
  define( 'IMAGIFY_PATH', realpath( plugin_dir_path( IMAGIFY_FILE ) ) . '/' );
package.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "name": "imagify",
3
  "description": "Imagify Image Optimizer. Dramatically reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth.",
4
- "version": "1.9.3",
5
  "homepage": "https://wordpress.org/plugins/imagify/",
6
  "license": "GPL-2.0",
7
  "private": true,
1
  {
2
  "name": "imagify",
3
  "description": "Imagify Image Optimizer. Dramatically reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth.",
4
+ "version": "1.9.3.1",
5
  "homepage": "https://wordpress.org/plugins/imagify/",
6
  "license": "GPL-2.0",
7
  "private": true,
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wp_media, GregLone
3
  Tags: compress image, images, performance, optimization, webp
4
  Requires at least: 4.0.0
5
  Tested up to: 5.2.2
6
- Stable tag: 1.9.3
7
 
8
  Dramatically reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth.
9
 
@@ -153,6 +153,9 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
153
  4. Other Media Page
154
 
155
  == Changelog ==
 
 
 
156
  = 1.9.3 - 2019/06/17 =
157
  * Improvement: better compatibility with CDNs when displaying webp images with `<picture>` tags. There is now a new setting field to fill in the CDN URL in use.
158
  * Improvement: don’t use Heartbeat anymore. This speeds up the optimization process and prevents other plugins to break everything when they remove Heartbeat.
3
  Tags: compress image, images, performance, optimization, webp
4
  Requires at least: 4.0.0
5
  Tested up to: 5.2.2
6
+ Stable tag: 1.9.3.1
7
 
8
  Dramatically reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth.
9
 
153
  4. Other Media Page
154
 
155
  == Changelog ==
156
+ = 1.9.3.1 - 2019/07/03 =
157
+ * Fix: conflict with plugins using an ancient version of Composer.
158
+
159
  = 1.9.3 - 2019/06/17 =
160
  * Improvement: better compatibility with CDNs when displaying webp images with `<picture>` tags. There is now a new setting field to fill in the CDN URL in use.
161
  * Improvement: don’t use Heartbeat anymore. This speeds up the optimization process and prevents other plugins to break everything when they remove Heartbeat.
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit2efd1f353f7434673320a5d6ba6d8b75::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit5cd354cf53b026e5303a93ad6f0f63c4::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -10,12 +10,12 @@
10
  * file that was distributed with this source code.
11
  */
12
 
13
- namespace Composer\Autoload;
14
 
15
  /**
16
  * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
17
  *
18
- * $loader = new \Composer\Autoload\ClassLoader();
19
  *
20
  * // register classes with namespaces
21
  * $loader->add('Symfony\Component', __DIR__.'/component');
10
  * file that was distributed with this source code.
11
  */
12
 
13
+ namespace Composer\AutoloadWPMediaImagifyWordPressPlugin;
14
 
15
  /**
16
  * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
17
  *
18
+ * $loader = new \Composer\AutoloadWPMediaImagifyWordPressPlugin\ClassLoader();
19
  *
20
  * // register classes with namespaces
21
  * $loader->add('Symfony\Component', __DIR__.'/component');
vendor/composer/autoload_classmap.php CHANGED
@@ -96,6 +96,7 @@ return array(
96
  'Composer\\Installers\\YawikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/YawikInstaller.php',
97
  'Composer\\Installers\\ZendInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
98
  'Composer\\Installers\\ZikulaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
 
99
  'Imagify' => $baseDir . '/inc/classes/class-imagify.php',
100
  'Imagify\\Bulk\\AbstractBulk' => $baseDir . '/classes/Bulk/AbstractBulk.php',
101
  'Imagify\\Bulk\\BulkInterface' => $baseDir . '/classes/Bulk/BulkInterface.php',
96
  'Composer\\Installers\\YawikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/YawikInstaller.php',
97
  'Composer\\Installers\\ZendInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
98
  'Composer\\Installers\\ZikulaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
99
+ 'Dangoodman\\ComposerForWordpress\\ComposerForWordpress' => $vendorDir . '/dangoodman/composer-for-wordpress/ComposerForWordpress.php',
100
  'Imagify' => $baseDir . '/inc/classes/class-imagify.php',
101
  'Imagify\\Bulk\\AbstractBulk' => $baseDir . '/classes/Bulk/AbstractBulk.php',
102
  'Imagify\\Bulk\\BulkInterface' => $baseDir . '/classes/Bulk/BulkInterface.php',
vendor/composer/autoload_psr4.php CHANGED
@@ -13,5 +13,6 @@ return array(
13
  'Imagify\\ThirdParty\\EnableMediaReplace\\' => array($baseDir . '/inc/3rd-party/enable-media-replace/classes'),
14
  'Imagify\\ThirdParty\\AS3CF\\' => array($baseDir . '/inc/3rd-party/amazon-s3-and-cloudfront/classes'),
15
  'Imagify\\' => array($baseDir . '/classes'),
 
16
  'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
17
  );
13
  'Imagify\\ThirdParty\\EnableMediaReplace\\' => array($baseDir . '/inc/3rd-party/enable-media-replace/classes'),
14
  'Imagify\\ThirdParty\\AS3CF\\' => array($baseDir . '/inc/3rd-party/amazon-s3-and-cloudfront/classes'),
15
  'Imagify\\' => array($baseDir . '/classes'),
16
+ 'Dangoodman\\ComposerForWordpress\\' => array($vendorDir . '/dangoodman/composer-for-wordpress'),
17
  'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
18
  );
vendor/composer/autoload_real.php CHANGED
@@ -2,13 +2,13 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit2efd1f353f7434673320a5d6ba6d8b75
6
  {
7
  private static $loader;
8
 
9
  public static function loadClassLoader($class)
10
  {
11
- if ('Composer\Autoload\ClassLoader' === $class) {
12
  require __DIR__ . '/ClassLoader.php';
13
  }
14
  }
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit2efd1f353f7434673320a5d6ba6d8b75
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit2efd1f353f7434673320a5d6ba6d8b75', 'loadClassLoader'), true, true);
23
- self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit2efd1f353f7434673320a5d6ba6d8b75', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit2efd1f353f7434673320a5d6ba6d8b75::getInitializer($loader));
31
  } else {
32
  $classMap = require __DIR__ . '/autoload_classmap.php';
33
  if ($classMap) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit5cd354cf53b026e5303a93ad6f0f63c4
6
  {
7
  private static $loader;
8
 
9
  public static function loadClassLoader($class)
10
  {
11
+ if ('Composer\AutoloadWPMediaImagifyWordPressPlugin\ClassLoader' === $class) {
12
  require __DIR__ . '/ClassLoader.php';
13
  }
14
  }
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit5cd354cf53b026e5303a93ad6f0f63c4', 'loadClassLoader'), true, true);
23
+ self::$loader = $loader = new \Composer\AutoloadWPMediaImagifyWordPressPlugin\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit5cd354cf53b026e5303a93ad6f0f63c4', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit5cd354cf53b026e5303a93ad6f0f63c4::getInitializer($loader));
31
  } else {
32
  $classMap = require __DIR__ . '/autoload_classmap.php';
33
  if ($classMap) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,10 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit2efd1f353f7434673320a5d6ba6d8b75
 
 
 
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'I' =>
@@ -17,6 +20,10 @@ class ComposerStaticInit2efd1f353f7434673320a5d6ba6d8b75
17
  'Imagify\\ThirdParty\\AS3CF\\' => 25,
18
  'Imagify\\' => 8,
19
  ),
 
 
 
 
20
  'C' =>
21
  array (
22
  'Composer\\Installers\\' => 20,
@@ -52,6 +59,10 @@ class ComposerStaticInit2efd1f353f7434673320a5d6ba6d8b75
52
  array (
53
  0 => __DIR__ . '/../..' . '/classes',
54
  ),
 
 
 
 
55
  'Composer\\Installers\\' =>
56
  array (
57
  0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
@@ -149,6 +160,7 @@ class ComposerStaticInit2efd1f353f7434673320a5d6ba6d8b75
149
  'Composer\\Installers\\YawikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/YawikInstaller.php',
150
  'Composer\\Installers\\ZendInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
151
  'Composer\\Installers\\ZikulaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
 
152
  'Imagify' => __DIR__ . '/../..' . '/inc/classes/class-imagify.php',
153
  'Imagify\\Bulk\\AbstractBulk' => __DIR__ . '/../..' . '/classes/Bulk/AbstractBulk.php',
154
  'Imagify\\Bulk\\BulkInterface' => __DIR__ . '/../..' . '/classes/Bulk/BulkInterface.php',
@@ -257,13 +269,13 @@ class ComposerStaticInit2efd1f353f7434673320a5d6ba6d8b75
257
  'WP_Background_Process' => __DIR__ . '/..' . '/a5hleyrich/wp-background-processing/classes/wp-background-process.php',
258
  );
259
 
260
- public static function getInitializer(ClassLoader $loader)
261
  {
262
  return \Closure::bind(function () use ($loader) {
263
- $loader->prefixLengthsPsr4 = ComposerStaticInit2efd1f353f7434673320a5d6ba6d8b75::$prefixLengthsPsr4;
264
- $loader->prefixDirsPsr4 = ComposerStaticInit2efd1f353f7434673320a5d6ba6d8b75::$prefixDirsPsr4;
265
- $loader->classMap = ComposerStaticInit2efd1f353f7434673320a5d6ba6d8b75::$classMap;
266
 
267
- }, null, ClassLoader::class);
268
  }
269
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ use Composer\AutoloadWPMediaImagifyWordPressPlugin\ClassLoader as ClassLoaderWPMediaImagifyWordPressPlugin;
8
+
9
+
10
+ class ComposerStaticInit5cd354cf53b026e5303a93ad6f0f63c4
11
  {
12
  public static $prefixLengthsPsr4 = array (
13
  'I' =>
20
  'Imagify\\ThirdParty\\AS3CF\\' => 25,
21
  'Imagify\\' => 8,
22
  ),
23
+ 'D' =>
24
+ array (
25
+ 'Dangoodman\\ComposerForWordpress\\' => 32,
26
+ ),
27
  'C' =>
28
  array (
29
  'Composer\\Installers\\' => 20,
59
  array (
60
  0 => __DIR__ . '/../..' . '/classes',
61
  ),
62
+ 'Dangoodman\\ComposerForWordpress\\' =>
63
+ array (
64
+ 0 => __DIR__ . '/..' . '/dangoodman/composer-for-wordpress',
65
+ ),
66
  'Composer\\Installers\\' =>
67
  array (
68
  0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
160
  'Composer\\Installers\\YawikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/YawikInstaller.php',
161
  'Composer\\Installers\\ZendInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
162
  'Composer\\Installers\\ZikulaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
163
+ 'Dangoodman\\ComposerForWordpress\\ComposerForWordpress' => __DIR__ . '/..' . '/dangoodman/composer-for-wordpress/ComposerForWordpress.php',
164
  'Imagify' => __DIR__ . '/../..' . '/inc/classes/class-imagify.php',
165
  'Imagify\\Bulk\\AbstractBulk' => __DIR__ . '/../..' . '/classes/Bulk/AbstractBulk.php',
166
  'Imagify\\Bulk\\BulkInterface' => __DIR__ . '/../..' . '/classes/Bulk/BulkInterface.php',
269
  'WP_Background_Process' => __DIR__ . '/..' . '/a5hleyrich/wp-background-processing/classes/wp-background-process.php',
270
  );
271
 
272
+ public static function getInitializer(ClassLoaderWPMediaImagifyWordPressPlugin $loader)
273
  {
274
  return \Closure::bind(function () use ($loader) {
275
+ $loader->prefixLengthsPsr4 = ComposerStaticInit5cd354cf53b026e5303a93ad6f0f63c4::$prefixLengthsPsr4;
276
+ $loader->prefixDirsPsr4 = ComposerStaticInit5cd354cf53b026e5303a93ad6f0f63c4::$prefixDirsPsr4;
277
+ $loader->classMap = ComposerStaticInit5cd354cf53b026e5303a93ad6f0f63c4::$classMap;
278
 
279
+ }, null, ClassLoaderWPMediaImagifyWordPressPlugin::class);
280
  }
281
  }
vendor/composer/installed.json CHANGED
@@ -1,4 +1,35 @@
1
  [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  {
3
  "name": "composer/installers",
4
  "version": "v1.6.0",
1
  [
2
+ {
3
+ "name": "dangoodman/composer-for-wordpress",
4
+ "version": "2.0.0",
5
+ "version_normalized": "2.0.0.0",
6
+ "source": {
7
+ "type": "git",
8
+ "url": "https://github.com/dangoodman/composer-for-wordpress.git",
9
+ "reference": "be478117ee9b2fbcdb5a6580a5ec69b66e711e20"
10
+ },
11
+ "dist": {
12
+ "type": "zip",
13
+ "url": "https://api.github.com/repos/dangoodman/composer-for-wordpress/zipball/be478117ee9b2fbcdb5a6580a5ec69b66e711e20",
14
+ "reference": "be478117ee9b2fbcdb5a6580a5ec69b66e711e20",
15
+ "shasum": ""
16
+ },
17
+ "require": {
18
+ "composer-plugin-api": "^1.0"
19
+ },
20
+ "time": "2018-06-20T15:01:37+00:00",
21
+ "type": "composer-plugin",
22
+ "extra": {
23
+ "class": "Dangoodman\\ComposerForWordpress\\ComposerForWordpress"
24
+ },
25
+ "installation-source": "dist",
26
+ "autoload": {
27
+ "psr-4": {
28
+ "Dangoodman\\ComposerForWordpress\\": "."
29
+ }
30
+ },
31
+ "notification-url": "https://packagist.org/downloads/"
32
+ },
33
  {
34
  "name": "composer/installers",
35
  "version": "v1.6.0",
vendor/dangoodman/composer-for-wordpress/ComposerForWordpress.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Dangoodman\ComposerForWordpress;
3
+
4
+ use Composer\Composer;
5
+ use Composer\EventDispatcher\EventSubscriberInterface;
6
+ use Composer\IO\IOInterface;
7
+ use Composer\Plugin\PluginInterface;
8
+ use Composer\Script\Event;
9
+ use Composer\Script\ScriptEvents;
10
+
11
+
12
+ class ComposerForWordpress implements PluginInterface, EventSubscriberInterface
13
+ {
14
+ public function activate(Composer $composer, IOInterface $io)
15
+ {
16
+ }
17
+
18
+ public static function getSubscribedEvents()
19
+ {
20
+ return array(
21
+ ScriptEvents::POST_AUTOLOAD_DUMP => array(
22
+ array('onPostAutoloadDump', 0)
23
+ ),
24
+ );
25
+ }
26
+
27
+ public function onPostAutoloadDump(Event $event)
28
+ {
29
+ $composerConfig = $event->getComposer()->getConfig();
30
+ $composerAutoloadDir = "{$composerConfig->get('vendor-dir')}/composer";
31
+
32
+ $classLoader = "{$composerAutoloadDir}/ClassLoader.php";
33
+ $autoloadReal = "{$composerAutoloadDir}/autoload_real.php";
34
+ $autoloadStatic = "{$composerAutoloadDir}/autoload_static.php";
35
+
36
+ $suffix = $composerConfig->get('classloader-suffix') ?: md5(uniqid('', true));
37
+
38
+ self::replaceInFiles(
39
+ array($classLoader, $autoloadReal),
40
+ '/Composer\\\\Autoload(;|\\\\(?!ComposerStaticInit))/',
41
+ "Composer\\Autoload{$suffix}\$1"
42
+ );
43
+
44
+ self::replaceInFiles(
45
+ array($autoloadStatic),
46
+ array(
47
+ '/\bClassLoader\b/'
48
+ => "ClassLoader{$suffix}",
49
+ '/'.preg_quote("\nnamespace Composer\\Autoload;\n", '/').'/'
50
+ => "$0\nuse Composer\\Autoload{$suffix}\\ClassLoader as ClassLoader{$suffix};\n\n",
51
+ )
52
+ );
53
+ }
54
+
55
+ private static function replaceInFiles(array $files, $search, $replace = null)
56
+ {
57
+ if (func_num_args() == 3) {
58
+ $search = array($search => $replace);
59
+ }
60
+
61
+ foreach ($files as $file) {
62
+ $contents = file_get_contents($file);
63
+ $contents = preg_replace(array_keys($search), array_values($search), $contents);
64
+ file_put_contents($file, $contents);
65
+ }
66
+ }
67
+ }