Imagify Image Optimizer - Version 1.9.2

Version Description

  • 2019/05/16 =
  • Fix: dont display support bubble anymore.
Download this release

Release Info

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

Code changes from version 1.9.1 to 1.9.2

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.1
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.1' );
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.2
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.2' );
24
  define( 'IMAGIFY_SLUG', 'imagify' );
25
  define( 'IMAGIFY_FILE', __FILE__ );
26
  define( 'IMAGIFY_PATH', realpath( plugin_dir_path( IMAGIFY_FILE ) ) . '/' );
inc/3rd-party/nextgen-gallery/inc/admin/enqueue.php CHANGED
@@ -42,7 +42,4 @@ function _imagify_ngg_admin_print_styles() {
42
  $l10n['bufferSizes'] = apply_filters( 'imagify_bulk_buffer_sizes', $l10n['bufferSizes'] );
43
 
44
  $assets->enqueue_assets( [ 'pricing-modal', 'bulk' ] )->localize( 'imagifyBulk', $l10n );
45
-
46
- // Intercom.
47
- add_action( 'admin_footer-' . $bulk_screen_id, [ $assets, 'print_support_script' ] );
48
  }
42
  $l10n['bufferSizes'] = apply_filters( 'imagify_bulk_buffer_sizes', $l10n['bufferSizes'] );
43
 
44
  $assets->enqueue_assets( [ 'pricing-modal', 'bulk' ] )->localize( 'imagifyBulk', $l10n );
 
 
 
45
  }
inc/classes/class-imagify-assets.php CHANGED
@@ -7,14 +7,14 @@ defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
7
  * @since 1.6.10
8
  * @author Grégory Viguier
9
  */
10
- class Imagify_Assets {
11
 
12
  /**
13
  * Class version.
14
  *
15
  * @var string
16
  */
17
- const VERSION = '1.0.3';
18
 
19
  /**
20
  * Prefix used for stylesheet handles.
@@ -125,9 +125,6 @@ class Imagify_Assets {
125
 
126
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles_and_scripts' ), IMAGIFY_INT_MAX );
127
  add_action( 'wp_enqueue_media', array( $this, 'enqueue_media_modal' ) );
128
-
129
- add_action( 'admin_footer-media_page_imagify-bulk-optimization', array( $this, 'print_support_script' ) );
130
- add_action( 'admin_footer-settings_page_imagify', array( $this, 'print_support_script' ) );
131
  }
132
 
133
  /**
@@ -341,33 +338,6 @@ class Imagify_Assets {
341
  do_action( 'imagify_media_modal_assets_enqueued' );
342
  }
343
 
344
- /**
345
- * Add Intercom on Options page an Bulk Optimization.
346
- * Previously was _imagify_admin_print_intercom()
347
- *
348
- * @since 1.6.10
349
- * @author Grégory Viguier
350
- */
351
- public function print_support_script() {
352
- if ( ! Imagify_Requirements::is_api_key_valid() ) {
353
- return;
354
- }
355
-
356
- $user = get_imagify_user();
357
-
358
- if ( empty( $user->is_intercom ) || empty( $user->display_support ) ) {
359
- return;
360
- }
361
- ?>
362
- <script>
363
- window.intercomSettings = {
364
- app_id: 'cd6nxj3z',
365
- user_id: <?php echo (int) $user->id; ?>
366
- };
367
- (function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/cd6nxj3z';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
368
- </script>
369
- <?php
370
- }
371
 
372
 
373
  /** ----------------------------------------------------------------------------------------- */
7
  * @since 1.6.10
8
  * @author Grégory Viguier
9
  */
10
+ class Imagify_Assets extends Imagify_Assets_Deprecated {
11
 
12
  /**
13
  * Class version.
14
  *
15
  * @var string
16
  */
17
+ const VERSION = '1.0.4';
18
 
19
  /**
20
  * Prefix used for stylesheet handles.
125
 
126
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles_and_scripts' ), IMAGIFY_INT_MAX );
127
  add_action( 'wp_enqueue_media', array( $this, 'enqueue_media_modal' ) );
 
 
 
128
  }
129
 
130
  /**
338
  do_action( 'imagify_media_modal_assets_enqueued' );
339
  }
340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
 
342
 
343
  /** ----------------------------------------------------------------------------------------- */
inc/deprecated/classes/class-imagify-assets-deprecated.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
3
+
4
+ /**
5
+ * Class containing deprecated methods of Imagify_Assets.
6
+ *
7
+ * @since 1.9.2
8
+ * @author Grégory Viguier
9
+ */
10
+ class Imagify_Assets_Deprecated {
11
+
12
+ /**
13
+ * Add Intercom on Options page an Bulk Optimization.
14
+ * Previously was _imagify_admin_print_intercom()
15
+ *
16
+ * @since 1.6.10
17
+ * @since 1.9.2 Deprecated.
18
+ * @author Grégory Viguier
19
+ * @deprecated
20
+ */
21
+ public function print_support_script() {
22
+ _deprecated_function( get_class( $this ) . '::' . __FUNCTION__ . '()', '1.9.2' );
23
+
24
+ if ( ! Imagify_Requirements::is_api_key_valid() ) {
25
+ return;
26
+ }
27
+
28
+ $user = get_imagify_user();
29
+
30
+ if ( empty( $user->is_intercom ) || empty( $user->display_support ) ) {
31
+ return;
32
+ }
33
+ ?>
34
+ <script>
35
+ window.intercomSettings = {
36
+ app_id: 'cd6nxj3z',
37
+ user_id: <?php echo (int) $user->id; ?>
38
+ };
39
+ (function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/cd6nxj3z';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
40
+ </script>
41
+ <?php
42
+ }
43
+ }
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.1",
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.2",
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, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 4.0.0
5
  Tested up to: 5.2
6
- Stable tag: 1.9.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
 
@@ -138,6 +138,9 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
138
  4. Other Media Page
139
 
140
  == Changelog ==
 
 
 
141
  = 1.9.1 - 2019/05/09 =
142
  * Improvement: prevent "Generating missing webp versions" being stuck at 0% in the settings page by displaying a "done/total" label instead.
143
  * Improvement: improved our "re-registering" of the Heartbeat library, that some plugins may deactivate.
3
  Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 4.0.0
5
  Tested up to: 5.2
6
+ Stable tag: 1.9.2
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
 
138
  4. Other Media Page
139
 
140
  == Changelog ==
141
+ = 1.9.2 - 2019/05/16 =
142
+ * Fix: don’t display support bubble anymore.
143
+
144
  = 1.9.1 - 2019/05/09 =
145
  * Improvement: prevent "Generating missing webp versions" being stuck at 0% in the settings page by displaying a "done/total" label instead.
146
  * Improvement: improved our "re-registering" of the Heartbeat library, that some plugins may deactivate.
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit38f74f82c6936ad69e7e38bb678146e5::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitb780e2ce7c81834ff923ca9ba6283b0f::getLoader();
vendor/composer/autoload_classmap.php CHANGED
@@ -168,6 +168,7 @@ return array(
168
  'Imagify_Admin_Ajax_Post' => $baseDir . '/inc/classes/class-imagify-admin-ajax-post.php',
169
  'Imagify_Admin_Ajax_Post_Deprecated' => $baseDir . '/inc/deprecated/classes/class-imagify-admin-ajax-post-deprecated.php',
170
  'Imagify_Assets' => $baseDir . '/inc/classes/class-imagify-assets.php',
 
171
  'Imagify_Attachment' => $baseDir . '/inc/deprecated/classes/class-imagify-attachment.php',
172
  'Imagify_Auto_Optimization' => $baseDir . '/inc/classes/class-imagify-auto-optimization.php',
173
  'Imagify_Cron_Library_Size' => $baseDir . '/inc/classes/class-imagify-cron-library-size.php',
168
  'Imagify_Admin_Ajax_Post' => $baseDir . '/inc/classes/class-imagify-admin-ajax-post.php',
169
  'Imagify_Admin_Ajax_Post_Deprecated' => $baseDir . '/inc/deprecated/classes/class-imagify-admin-ajax-post-deprecated.php',
170
  'Imagify_Assets' => $baseDir . '/inc/classes/class-imagify-assets.php',
171
+ 'Imagify_Assets_Deprecated' => $baseDir . '/inc/deprecated/classes/class-imagify-assets-deprecated.php',
172
  'Imagify_Attachment' => $baseDir . '/inc/deprecated/classes/class-imagify-attachment.php',
173
  'Imagify_Auto_Optimization' => $baseDir . '/inc/classes/class-imagify-auto-optimization.php',
174
  'Imagify_Cron_Library_Size' => $baseDir . '/inc/classes/class-imagify-cron-library-size.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit38f74f82c6936ad69e7e38bb678146e5
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit38f74f82c6936ad69e7e38bb678146e5
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit38f74f82c6936ad69e7e38bb678146e5', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit38f74f82c6936ad69e7e38bb678146e5', '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\ComposerStaticInit38f74f82c6936ad69e7e38bb678146e5::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 ComposerAutoloaderInitb780e2ce7c81834ff923ca9ba6283b0f
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitb780e2ce7c81834ff923ca9ba6283b0f', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitb780e2ce7c81834ff923ca9ba6283b0f', '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\ComposerStaticInitb780e2ce7c81834ff923ca9ba6283b0f::getInitializer($loader));
31
  } else {
32
  $classMap = require __DIR__ . '/autoload_classmap.php';
33
  if ($classMap) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit38f74f82c6936ad69e7e38bb678146e5
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'I' =>
@@ -216,6 +216,7 @@ class ComposerStaticInit38f74f82c6936ad69e7e38bb678146e5
216
  'Imagify_Admin_Ajax_Post' => __DIR__ . '/../..' . '/inc/classes/class-imagify-admin-ajax-post.php',
217
  'Imagify_Admin_Ajax_Post_Deprecated' => __DIR__ . '/../..' . '/inc/deprecated/classes/class-imagify-admin-ajax-post-deprecated.php',
218
  'Imagify_Assets' => __DIR__ . '/../..' . '/inc/classes/class-imagify-assets.php',
 
219
  'Imagify_Attachment' => __DIR__ . '/../..' . '/inc/deprecated/classes/class-imagify-attachment.php',
220
  'Imagify_Auto_Optimization' => __DIR__ . '/../..' . '/inc/classes/class-imagify-auto-optimization.php',
221
  'Imagify_Cron_Library_Size' => __DIR__ . '/../..' . '/inc/classes/class-imagify-cron-library-size.php',
@@ -251,9 +252,9 @@ class ComposerStaticInit38f74f82c6936ad69e7e38bb678146e5
251
  public static function getInitializer(ClassLoader $loader)
252
  {
253
  return \Closure::bind(function () use ($loader) {
254
- $loader->prefixLengthsPsr4 = ComposerStaticInit38f74f82c6936ad69e7e38bb678146e5::$prefixLengthsPsr4;
255
- $loader->prefixDirsPsr4 = ComposerStaticInit38f74f82c6936ad69e7e38bb678146e5::$prefixDirsPsr4;
256
- $loader->classMap = ComposerStaticInit38f74f82c6936ad69e7e38bb678146e5::$classMap;
257
 
258
  }, null, ClassLoader::class);
259
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitb780e2ce7c81834ff923ca9ba6283b0f
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'I' =>
216
  'Imagify_Admin_Ajax_Post' => __DIR__ . '/../..' . '/inc/classes/class-imagify-admin-ajax-post.php',
217
  'Imagify_Admin_Ajax_Post_Deprecated' => __DIR__ . '/../..' . '/inc/deprecated/classes/class-imagify-admin-ajax-post-deprecated.php',
218
  'Imagify_Assets' => __DIR__ . '/../..' . '/inc/classes/class-imagify-assets.php',
219
+ 'Imagify_Assets_Deprecated' => __DIR__ . '/../..' . '/inc/deprecated/classes/class-imagify-assets-deprecated.php',
220
  'Imagify_Attachment' => __DIR__ . '/../..' . '/inc/deprecated/classes/class-imagify-attachment.php',
221
  'Imagify_Auto_Optimization' => __DIR__ . '/../..' . '/inc/classes/class-imagify-auto-optimization.php',
222
  'Imagify_Cron_Library_Size' => __DIR__ . '/../..' . '/inc/classes/class-imagify-cron-library-size.php',
252
  public static function getInitializer(ClassLoader $loader)
253
  {
254
  return \Closure::bind(function () use ($loader) {
255
+ $loader->prefixLengthsPsr4 = ComposerStaticInitb780e2ce7c81834ff923ca9ba6283b0f::$prefixLengthsPsr4;
256
+ $loader->prefixDirsPsr4 = ComposerStaticInitb780e2ce7c81834ff923ca9ba6283b0f::$prefixDirsPsr4;
257
+ $loader->classMap = ComposerStaticInitb780e2ce7c81834ff923ca9ba6283b0f::$classMap;
258
 
259
  }, null, ClassLoader::class);
260
  }