Imagify Image Optimizer - Version 1.8.4.1

Version Description

  • 2018/12/18 =
  • Improvement: prevent "unknown error" messages that some users are getting since yesterday.
Download this release

Release Info

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

Code changes from version 1.8.4 to 1.8.4.1

Files changed (92) hide show
  1. assets/css/files-list.css +0 -0
  2. assets/css/files-list.min.css +0 -0
  3. assets/images/big-blue-check.png +0 -0
  4. assets/images/icon-alert.svg +0 -0
  5. assets/images/icon-arrow-choice.png +0 -0
  6. assets/images/icon-arrow-choice.svg +0 -0
  7. assets/images/icon-doc-image.svg +0 -0
  8. assets/images/icon-external.svg +0 -0
  9. assets/images/icon-level.svg +0 -0
  10. assets/images/icon-load.svg +0 -0
  11. assets/images/icon-lock.png +0 -0
  12. assets/images/icon-lock.svg +0 -0
  13. assets/images/icon-pack.png +0 -0
  14. assets/images/icon-pack.svg +0 -0
  15. assets/images/icon-time.svg +0 -0
  16. assets/images/imagify-logo.png +0 -0
  17. assets/images/imagify-menu-bar-de.jpg +0 -0
  18. assets/images/imagify-menu-bar-en.jpg +0 -0
  19. assets/images/imagify-menu-bar-es.jpg +0 -0
  20. assets/images/imagify-menu-bar-fr.jpg +0 -0
  21. assets/images/imagify-menu-bar-it.jpg +0 -0
  22. assets/images/lazyload.png +0 -0
  23. assets/images/logo-wprocket.png +0 -0
  24. assets/images/logo-wprocket.svg +0 -0
  25. assets/images/logo-wprocket@2x.png +0 -0
  26. assets/images/pic-ericwaltr.jpg +0 -0
  27. assets/images/pic-srhdesign.jpg +0 -0
  28. assets/images/spinner.gif +0 -0
  29. assets/images/upload-image.png +0 -0
  30. assets/js/chart.js +0 -0
  31. assets/js/chart.min.js +0 -0
  32. assets/js/files-list.js +0 -0
  33. assets/js/files-list.min.js +0 -0
  34. assets/js/formdata-polyfill.js +0 -0
  35. assets/js/formdata-polyfill.min.js +0 -0
  36. assets/js/imagify-gulp.js +0 -0
  37. assets/js/imagify-gulp.min.js +0 -0
  38. assets/js/imagify-wp-retina-2x.js +0 -0
  39. assets/js/imagify-wp-retina-2x.min.js +0 -0
  40. imagify.php +2 -2
  41. inc/3rd-party/amazon-s3-and-cloudfront/inc/classes/class-imagify-as3cf-attachment.php +0 -0
  42. inc/3rd-party/amazon-s3-and-cloudfront/inc/classes/class-imagify-as3cf.php +0 -0
  43. inc/3rd-party/hosting/siteground.php +0 -0
  44. inc/3rd-party/hosting/wordpress-com.php +0 -0
  45. inc/3rd-party/hosting/wpengine.php +0 -0
  46. inc/3rd-party/nextgen-gallery/inc/admin/ajax.php +0 -0
  47. inc/3rd-party/nextgen-gallery/inc/admin/bulk.php +0 -0
  48. inc/3rd-party/nextgen-gallery/inc/admin/enqueue.php +0 -0
  49. inc/3rd-party/nextgen-gallery/inc/admin/gallery.php +0 -0
  50. inc/3rd-party/nextgen-gallery/inc/admin/heartbeat.php +0 -0
  51. inc/3rd-party/nextgen-gallery/inc/admin/menu.php +0 -0
  52. inc/3rd-party/nextgen-gallery/inc/classes/class-imagify-ngg-attachment.php +0 -0
  53. inc/3rd-party/nextgen-gallery/inc/classes/class-imagify-ngg-db.php +0 -0
  54. inc/3rd-party/nextgen-gallery/inc/common/attachments.php +0 -0
  55. inc/3rd-party/nextgen-gallery/inc/functions/admin-stats.php +0 -0
  56. inc/3rd-party/nextgen-gallery/inc/functions/attachments.php +0 -0
  57. inc/3rd-party/nextgen-gallery/inc/functions/common.php +0 -0
  58. inc/3rd-party/regenerate-thumbnails/inc/classes/class-imagify-regenerate-thumbnails.php +0 -0
  59. inc/3rd-party/wp-retina-2x/inc/classes/class-imagify-wp-retina-2x-core.php +0 -0
  60. inc/3rd-party/wp-retina-2x/inc/classes/class-imagify-wp-retina-2x.php +0 -0
  61. inc/3rd-party/wp-rocket.php +0 -0
  62. inc/3rd-party/wp-time-capsule/inc/classes/class-imagify-wp-time-capsule.php +0 -0
  63. inc/3rd-party/wp-time-capsule/wp-time-capsule.php +0 -0
  64. inc/admin/custom-folders.php +0 -0
  65. inc/classes/class-imagify-abstract-attachment.php +0 -0
  66. inc/classes/class-imagify-abstract-cron.php +0 -0
  67. inc/classes/class-imagify-abstract-db.php +0 -0
  68. inc/classes/class-imagify-abstract-options.php +0 -0
  69. inc/classes/class-imagify-attachment.php +0 -0
  70. inc/classes/class-imagify-auto-optimization.php +0 -0
  71. inc/classes/class-imagify-cron-library-size.php +0 -0
  72. inc/classes/class-imagify-cron-rating.php +0 -0
  73. inc/classes/class-imagify-cron-sync-files.php +0 -0
  74. inc/classes/class-imagify-custom-folders.php +0 -0
  75. inc/classes/class-imagify-data.php +0 -0
  76. inc/classes/class-imagify-db.php +0 -0
  77. inc/classes/class-imagify-file-attachment.php +0 -0
  78. inc/classes/class-imagify-files-db.php +0 -0
  79. inc/classes/class-imagify-files-iterator.php +0 -0
  80. inc/classes/class-imagify-files-recursive-iterator.php +0 -0
  81. inc/classes/class-imagify-files-scan.php +0 -0
  82. inc/classes/class-imagify-files-stats.php +0 -0
  83. inc/classes/class-imagify-filesystem.php +0 -0
  84. inc/classes/class-imagify-folders-db.php +0 -0
  85. inc/classes/class-imagify-options.php +0 -0
  86. inc/classes/class-imagify-requirements.php +0 -0
  87. inc/classes/class-imagify-settings.php +0 -0
  88. inc/classes/class-imagify-views.php +0 -0
  89. inc/classes/class-imagify.php +29 -7
  90. inc/functions/admin-ui.php +0 -0
  91. inc/functions/deprecated.php +0 -0
  92. readme.txt +5 -2
assets/css/files-list.css CHANGED
File without changes
assets/css/files-list.min.css CHANGED
File without changes
assets/images/big-blue-check.png CHANGED
File without changes
assets/images/icon-alert.svg CHANGED
File without changes
assets/images/icon-arrow-choice.png CHANGED
File without changes
assets/images/icon-arrow-choice.svg CHANGED
File without changes
assets/images/icon-doc-image.svg CHANGED
File without changes
assets/images/icon-external.svg CHANGED
File without changes
assets/images/icon-level.svg CHANGED
File without changes
assets/images/icon-load.svg CHANGED
File without changes
assets/images/icon-lock.png CHANGED
File without changes
assets/images/icon-lock.svg CHANGED
File without changes
assets/images/icon-pack.png CHANGED
File without changes
assets/images/icon-pack.svg CHANGED
File without changes
assets/images/icon-time.svg CHANGED
File without changes
assets/images/imagify-logo.png CHANGED
File without changes
assets/images/imagify-menu-bar-de.jpg CHANGED
File without changes
assets/images/imagify-menu-bar-en.jpg CHANGED
File without changes
assets/images/imagify-menu-bar-es.jpg CHANGED
File without changes
assets/images/imagify-menu-bar-fr.jpg CHANGED
File without changes
assets/images/imagify-menu-bar-it.jpg CHANGED
File without changes
assets/images/lazyload.png CHANGED
File without changes
assets/images/logo-wprocket.png CHANGED
File without changes
assets/images/logo-wprocket.svg CHANGED
File without changes
assets/images/logo-wprocket@2x.png CHANGED
File without changes
assets/images/pic-ericwaltr.jpg CHANGED
File without changes
assets/images/pic-srhdesign.jpg CHANGED
File without changes
assets/images/spinner.gif CHANGED
File without changes
assets/images/upload-image.png CHANGED
File without changes
assets/js/chart.js CHANGED
File without changes
assets/js/chart.min.js CHANGED
File without changes
assets/js/files-list.js CHANGED
File without changes
assets/js/files-list.min.js CHANGED
File without changes
assets/js/formdata-polyfill.js CHANGED
File without changes
assets/js/formdata-polyfill.min.js CHANGED
File without changes
assets/js/imagify-gulp.js CHANGED
File without changes
assets/js/imagify-gulp.min.js CHANGED
File without changes
assets/js/imagify-wp-retina-2x.js CHANGED
File without changes
assets/js/imagify-wp-retina-2x.min.js CHANGED
File without changes
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.8.4
7
  * Author: WP Media
8
  * Author URI: https://wp-media.me/
9
  * Licence: GPLv2
@@ -17,7 +17,7 @@
17
  defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
18
 
19
  // Imagify defines.
20
- define( 'IMAGIFY_VERSION', '1.8.4' );
21
  define( 'IMAGIFY_WP_MIN', '4.0' );
22
  define( 'IMAGIFY_SLUG', 'imagify' );
23
  define( 'IMAGIFY_FILE', __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.8.4.1
7
  * Author: WP Media
8
  * Author URI: https://wp-media.me/
9
  * Licence: GPLv2
17
  defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
18
 
19
  // Imagify defines.
20
+ define( 'IMAGIFY_VERSION', '1.8.4.1' );
21
  define( 'IMAGIFY_WP_MIN', '4.0' );
22
  define( 'IMAGIFY_SLUG', 'imagify' );
23
  define( 'IMAGIFY_FILE', __FILE__ );
inc/3rd-party/amazon-s3-and-cloudfront/inc/classes/class-imagify-as3cf-attachment.php CHANGED
File without changes
inc/3rd-party/amazon-s3-and-cloudfront/inc/classes/class-imagify-as3cf.php CHANGED
File without changes
inc/3rd-party/hosting/siteground.php CHANGED
File without changes
inc/3rd-party/hosting/wordpress-com.php CHANGED
File without changes
inc/3rd-party/hosting/wpengine.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/admin/ajax.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/admin/bulk.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/admin/enqueue.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/admin/gallery.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/admin/heartbeat.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/admin/menu.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/classes/class-imagify-ngg-attachment.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/classes/class-imagify-ngg-db.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/common/attachments.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/functions/admin-stats.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/functions/attachments.php CHANGED
File without changes
inc/3rd-party/nextgen-gallery/inc/functions/common.php CHANGED
File without changes
inc/3rd-party/regenerate-thumbnails/inc/classes/class-imagify-regenerate-thumbnails.php CHANGED
File without changes
inc/3rd-party/wp-retina-2x/inc/classes/class-imagify-wp-retina-2x-core.php CHANGED
File without changes
inc/3rd-party/wp-retina-2x/inc/classes/class-imagify-wp-retina-2x.php CHANGED
File without changes
inc/3rd-party/wp-rocket.php CHANGED
File without changes
inc/3rd-party/wp-time-capsule/inc/classes/class-imagify-wp-time-capsule.php CHANGED
File without changes
inc/3rd-party/wp-time-capsule/wp-time-capsule.php CHANGED
File without changes
inc/admin/custom-folders.php CHANGED
File without changes
inc/classes/class-imagify-abstract-attachment.php CHANGED
File without changes
inc/classes/class-imagify-abstract-cron.php CHANGED
File without changes
inc/classes/class-imagify-abstract-db.php CHANGED
File without changes
inc/classes/class-imagify-abstract-options.php CHANGED
File without changes
inc/classes/class-imagify-attachment.php CHANGED
File without changes
inc/classes/class-imagify-auto-optimization.php CHANGED
File without changes
inc/classes/class-imagify-cron-library-size.php CHANGED
File without changes
inc/classes/class-imagify-cron-rating.php CHANGED
File without changes
inc/classes/class-imagify-cron-sync-files.php CHANGED
File without changes
inc/classes/class-imagify-custom-folders.php CHANGED
File without changes
inc/classes/class-imagify-data.php CHANGED
File without changes
inc/classes/class-imagify-db.php CHANGED
File without changes
inc/classes/class-imagify-file-attachment.php CHANGED
File without changes
inc/classes/class-imagify-files-db.php CHANGED
File without changes
inc/classes/class-imagify-files-iterator.php CHANGED
File without changes
inc/classes/class-imagify-files-recursive-iterator.php CHANGED
File without changes
inc/classes/class-imagify-files-scan.php CHANGED
File without changes
inc/classes/class-imagify-files-stats.php CHANGED
File without changes
inc/classes/class-imagify-filesystem.php CHANGED
File without changes
inc/classes/class-imagify-folders-db.php CHANGED
File without changes
inc/classes/class-imagify-options.php CHANGED
File without changes
inc/classes/class-imagify-requirements.php CHANGED
File without changes
inc/classes/class-imagify-settings.php CHANGED
File without changes
inc/classes/class-imagify-views.php CHANGED
File without changes
inc/classes/class-imagify.php CHANGED
@@ -11,7 +11,7 @@ class Imagify extends Imagify_Deprecated {
11
  *
12
  * @var string
13
  */
14
- const VERSION = '1.2';
15
  /**
16
  * The Imagify API endpoint.
17
  *
@@ -454,10 +454,9 @@ class Imagify extends Imagify_Deprecated {
454
  return new WP_Error( 'curl', 'cURL isn\'t installed on the server.' );
455
  }
456
 
457
- $url = self::API_ENDPOINT . $url;
458
-
459
  try {
460
- $ch = @curl_init();
 
461
 
462
  if ( ! is_resource( $ch ) ) {
463
  throw new Exception( 'Could not initialize a new cURL handle' );
@@ -489,13 +488,36 @@ class Imagify extends Imagify_Deprecated {
489
  curl_setopt( $ch, CURLOPT_POSTFIELDS, $args['post_data'] );
490
  }
491
 
 
 
 
 
 
 
492
  curl_setopt( $ch, CURLOPT_URL, $url );
493
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
 
494
  curl_setopt( $ch, CURLOPT_HTTPHEADER, $this->headers );
495
  curl_setopt( $ch, CURLOPT_TIMEOUT, $args['timeout'] );
496
- @curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
497
- curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, 0 );
498
- curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 0 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
499
 
500
  $response = curl_exec( $ch );
501
  $error = curl_error( $ch );
11
  *
12
  * @var string
13
  */
14
+ const VERSION = '1.2.1';
15
  /**
16
  * The Imagify API endpoint.
17
  *
454
  return new WP_Error( 'curl', 'cURL isn\'t installed on the server.' );
455
  }
456
 
 
 
457
  try {
458
+ $url = self::API_ENDPOINT . $url;
459
+ $ch = @curl_init();
460
 
461
  if ( ! is_resource( $ch ) ) {
462
  throw new Exception( 'Could not initialize a new cURL handle' );
488
  curl_setopt( $ch, CURLOPT_POSTFIELDS, $args['post_data'] );
489
  }
490
 
491
+ if ( defined( 'CURLOPT_PROTOCOLS' ) ) {
492
+ curl_setopt( $ch, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS );
493
+ }
494
+
495
+ $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ) );
496
+
497
  curl_setopt( $ch, CURLOPT_URL, $url );
498
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
499
+ curl_setopt( $ch, CURLOPT_HEADER, false );
500
  curl_setopt( $ch, CURLOPT_HTTPHEADER, $this->headers );
501
  curl_setopt( $ch, CURLOPT_TIMEOUT, $args['timeout'] );
502
+ curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, $args['timeout'] );
503
+ curl_setopt( $ch, CURLOPT_USERAGENT, $user_agent );
504
+ @curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, false );
505
+ curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false );
506
+ curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
507
+
508
+ /**
509
+ * Tell which http version to use with cURL during image optimization.
510
+ *
511
+ * @since 1.8.4.1
512
+ * @author Grégory Viguier
513
+ *
514
+ * @param $use_version_1_0 bool True to use version 1.0. False for 1.1. Default is true.
515
+ */
516
+ if ( apply_filters( 'imagify_curl_http_version_1_0', true ) ) {
517
+ curl_setopt( $ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0 );
518
+ } else {
519
+ curl_setopt( $ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1 );
520
+ }
521
 
522
  $response = curl_exec( $ch );
523
  $error = curl_error( $ch );
inc/functions/admin-ui.php CHANGED
File without changes
inc/functions/deprecated.php CHANGED
File without changes
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  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: 4.9.8
6
- Stable tag: 1.8.4
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.8.4 - 2018/11/12 =
142
  * Improvement: automatic optimization is delayed further, it now happens after the image original data is stored in the database. This new process should be more reliable.
143
  * Improvement: compatibility with wordpress.com.
2
  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.0.1
6
+ Stable tag: 1.8.4.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
  4. Other Media Page
139
 
140
  == Changelog ==
141
+ = 1.8.4.1 - 2018/12/18 =
142
+ * Improvement: prevent "unknown error" messages that some users are getting since yesterday.
143
+
144
  = 1.8.4 - 2018/11/12 =
145
  * Improvement: automatic optimization is delayed further, it now happens after the image original data is stored in the database. This new process should be more reliable.
146
  * Improvement: compatibility with wordpress.com.