Imagify Image Optimizer - Version 1.3.4

Version Description

  • NEW: Add Italian translation
Download this release

Release Info

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

Code changes from version 1.3.3 to 1.3.4

assets/js/bulk.js CHANGED
@@ -71,7 +71,7 @@ jQuery(function($){
71
 
72
 
73
  confirmMessage = function(){
74
- return "Imagify is processing. Are your sure you want to quit this page?";
75
  };
76
  $(window).on('beforeunload', confirmMessage);
77
 
71
 
72
 
73
  confirmMessage = function(){
74
+ return imagifyBulk.processing;
75
  };
76
  $(window).on('beforeunload', confirmMessage);
77
 
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 loosing quality, make your website load faster, boost your SEO and save money on your bandwith using Imagify, the new most advanced image optimization tool.
6
- Version: 1.3.3
7
  Author: WP Media
8
  Author URI: http://wp-media.me
9
  Licence: GPLv2
@@ -17,7 +17,7 @@ Copyright 2015 WP Media
17
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
18
 
19
  // Imagify defines
20
- define( 'IMAGIFY_VERSION' , '1.3.3' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
3
  Plugin Name: Imagify
4
  Plugin URI: https://wordpress.org/plugins/imagify/
5
  Description: Dramaticaly reduce image file sizes without loosing quality, make your website load faster, boost your SEO and save money on your bandwith using Imagify, the new most advanced image optimization tool.
6
+ Version: 1.3.4
7
  Author: WP Media
8
  Author URI: http://wp-media.me
9
  Licence: GPLv2
17
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
18
 
19
  // Imagify defines
20
+ define( 'IMAGIFY_VERSION' , '1.3.4' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
inc/admin/enqueue.php CHANGED
@@ -190,7 +190,8 @@ function _imagify_admin_print_styles() {
190
  'textToShare' => __( 'Discover @imagify, the new compression tool to optimize your images for free. I saved %1$s out of %2$s!', 'imagify' ),
191
  'totalOptimizedAttachments' => imagify_count_optimized_attachments(),
192
  'totalUnoptimizedAttachments' => imagify_count_unoptimized_attachments(),
193
- 'totalErrorsAttachments' => imagify_count_error_attachments()
 
194
  );
195
 
196
  if ( imagify_valid_key() ) {
190
  'textToShare' => __( 'Discover @imagify, the new compression tool to optimize your images for free. I saved %1$s out of %2$s!', 'imagify' ),
191
  'totalOptimizedAttachments' => imagify_count_optimized_attachments(),
192
  'totalUnoptimizedAttachments' => imagify_count_unoptimized_attachments(),
193
+ 'totalErrorsAttachments' => imagify_count_error_attachments(),
194
+ 'processing' => __( 'Imagify is still processing. Are you sure you want to leave this page?', 'imagify' ),
195
  );
196
 
197
  if ( imagify_valid_key() ) {
inc/admin/upgrader.php CHANGED
@@ -104,7 +104,17 @@ function _imagify_new_upgrade( $imagify_version, $current_version ) {
104
  'post_type' => 'attachment',
105
  'post_status' => 'inherit',
106
  'post_mime_type' => 'image',
107
- 'meta_key' => '_imagify_data',
 
 
 
 
 
 
 
 
 
 
108
  'posts_per_page' => -1,
109
  'update_post_term_cache' => false,
110
  'no_found_rows' => true,
104
  'post_type' => 'attachment',
105
  'post_status' => 'inherit',
106
  'post_mime_type' => 'image',
107
+ 'meta_query' => array(
108
+ 'relation' => 'AND',
109
+ array(
110
+ 'key' => '_imagify_data',
111
+ 'compare' => 'EXISTS'
112
+ ),
113
+ array(
114
+ 'key' => '_imagify_optimization_level',
115
+ 'compare' => 'NOT EXISTS'
116
+ ),
117
+ ),
118
  'posts_per_page' => -1,
119
  'update_post_term_cache' => false,
120
  'no_found_rows' => true,
inc/functions/api.php CHANGED
@@ -26,11 +26,11 @@ function is_imagify_blocked() {
26
  }
27
 
28
  /**
29
- * Determine if the Imagify servers are available by checking the API version.
30
  *
31
  * @since 1.0
32
  *
33
- * @return bool True if the Imagify servers are available.
34
  */
35
  function is_imagify_servers_up() {
36
  static $imagify_api_version = null;
26
  }
27
 
28
  /**
29
+ * Determine if the Imagify API is available by checking the API version.
30
  *
31
  * @since 1.0
32
  *
33
+ * @return bool True if the Imagify API is available.
34
  */
35
  function is_imagify_servers_up() {
36
  static $imagify_api_version = null;
inc/functions/files.php CHANGED
@@ -4,8 +4,9 @@ defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
4
  /**
5
  * Set the default file permissions using FS_CHMOD_FILE from WP
6
  *
7
- * @param string $file The path to file
8
  * @since 1.2
 
 
9
  * @return bool
10
  **/
11
  function imagify_chmod_file( $file ) {
4
  /**
5
  * Set the default file permissions using FS_CHMOD_FILE from WP
6
  *
 
7
  * @since 1.2
8
+ *
9
+ * @param string $file The path to file
10
  * @return bool
11
  **/
12
  function imagify_chmod_file( $file ) {
languages/imagify-es_ES.mo CHANGED
Binary file
languages/imagify-es_ES.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Imagify\n"
4
  "POT-Creation-Date: 2016-01-27 14:28+0100\n"
5
- "PO-Revision-Date: 2016-01-27 14:31+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es\n"
@@ -546,7 +546,7 @@ msgstr "Descuento del %s%s%s con este código de coupon:%s"
546
 
547
  #: inc/admin/ui/options.php:37
548
  msgid "Get WP Rocket now"
549
- msgstr "Obten tu WP Rocket, ¡ya!"
550
 
551
  #: inc/admin/ui/options.php:55
552
  #, php-format
2
  msgstr ""
3
  "Project-Id-Version: Imagify\n"
4
  "POT-Creation-Date: 2016-01-27 14:28+0100\n"
5
+ "PO-Revision-Date: 2016-01-29 11:45+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es\n"
546
 
547
  #: inc/admin/ui/options.php:37
548
  msgid "Get WP Rocket now"
549
+ msgstr "Obten WP Rocket, ¡ya!"
550
 
551
  #: inc/admin/ui/options.php:55
552
  #, php-format
languages/imagify-fr_FR.mo CHANGED
Binary file
languages/imagify-fr_FR.po CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Imagify\n"
4
- "POT-Creation-Date: 2016-01-27 14:27+0100\n"
5
- "PO-Revision-Date: 2016-01-27 15:31+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.6\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "X-Poedit-WPHeader: imagify.php\n"
15
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
@@ -52,7 +52,7 @@ msgstr "Voir mon abonnement"
52
  msgid "Oops, It's Over!"
53
  msgstr "Oups, c’est fini !"
54
 
55
- #: inc/admin/ajax.php:418 inc/admin/enqueue.php:201 inc/admin/ui/notices.php:253
56
  #, php-format
57
  msgid ""
58
  "You have consumed all your credit for this month. You will have <strong>%s "
@@ -170,11 +170,11 @@ msgstr ""
170
 
171
  #: inc/admin/enqueue.php:182 inc/admin/ui/bulk.php:257 inc/admin/upload.php:38
172
  msgid "Optimized"
173
- msgstr "Optimisé"
174
 
175
  #: inc/admin/enqueue.php:183 inc/admin/upload.php:39
176
  msgid "Unoptimized"
177
- msgstr "Non optimisé"
178
 
179
  #: inc/admin/enqueue.php:184
180
  msgid "Error"
@@ -197,7 +197,12 @@ msgstr ""
197
  "Découvrez @imagify, le nouvel outil de compression pour optimiser vos images. "
198
  "J’ai optimisé %1$s sur %2$s !"
199
 
200
- #: inc/admin/enqueue.php:198 inc/admin/enqueue.php:201
 
 
 
 
 
201
  #: inc/admin/ui/notices.php:253
202
  #, php-format
203
  msgid ""
@@ -207,7 +212,7 @@ msgstr ""
207
  "Pour continuer à optimiser vos images, connectez-vous à votre compte Imagify "
208
  "pour %sacheter un pack ou souscrire à un plan%s."
209
 
210
- #: inc/admin/enqueue.php:201
211
  msgid "F j, Y"
212
  msgstr ""
213
 
@@ -344,7 +349,7 @@ msgstr "Poids optimisé"
344
  #: inc/admin/ui/bulk.php:210
345
  #, php-format
346
  msgid "that's the size you saved %sby using Imagify"
347
- msgstr "c’est le poids que vous avez économisé en utilisant Imagify"
348
 
349
  #: inc/admin/ui/bulk.php:230
350
  msgid "Well done!"
@@ -771,13 +776,13 @@ msgstr "Je veux comparer%s et%s"
771
  #: inc/admin/ui/options.php:387
772
  #, php-format
773
  msgid "Original photography about %s"
774
- msgstr ""
775
 
776
  #: inc/admin/ui/options.php:392 inc/admin/ui/options.php:397
777
  #: inc/admin/ui/options.php:402
778
  #, php-format
779
  msgid "Optimized photography about %s"
780
- msgstr ""
781
 
782
  #: inc/admin/ui/options.php:407 inc/admin/ui/options.php:417
783
  #: inc/admin/ui/options.php:437 inc/admin/ui/options.php:458
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Imagify\n"
4
+ "POT-Creation-Date: 2016-01-27 23:00+0100\n"
5
+ "PO-Revision-Date: 2016-01-27 23:06+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.5\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "X-Poedit-WPHeader: imagify.php\n"
15
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
52
  msgid "Oops, It's Over!"
53
  msgstr "Oups, c’est fini !"
54
 
55
+ #: inc/admin/ajax.php:418 inc/admin/enqueue.php:202 inc/admin/ui/notices.php:253
56
  #, php-format
57
  msgid ""
58
  "You have consumed all your credit for this month. You will have <strong>%s "
170
 
171
  #: inc/admin/enqueue.php:182 inc/admin/ui/bulk.php:257 inc/admin/upload.php:38
172
  msgid "Optimized"
173
+ msgstr "Optimisées"
174
 
175
  #: inc/admin/enqueue.php:183 inc/admin/upload.php:39
176
  msgid "Unoptimized"
177
+ msgstr "Non optimisées"
178
 
179
  #: inc/admin/enqueue.php:184
180
  msgid "Error"
197
  "Découvrez @imagify, le nouvel outil de compression pour optimiser vos images. "
198
  "J’ai optimisé %1$s sur %2$s !"
199
 
200
+ #: inc/admin/enqueue.php:194
201
+ msgid "Imagify is still processing. Are you sure you want to leave this page?"
202
+ msgstr ""
203
+ "Imagify travaille encore. Êtes-vous sûr(e) de vouloir quitter cette page ?"
204
+
205
+ #: inc/admin/enqueue.php:199 inc/admin/enqueue.php:202
206
  #: inc/admin/ui/notices.php:253
207
  #, php-format
208
  msgid ""
212
  "Pour continuer à optimiser vos images, connectez-vous à votre compte Imagify "
213
  "pour %sacheter un pack ou souscrire à un plan%s."
214
 
215
+ #: inc/admin/enqueue.php:202
216
  msgid "F j, Y"
217
  msgstr ""
218
 
349
  #: inc/admin/ui/bulk.php:210
350
  #, php-format
351
  msgid "that's the size you saved %sby using Imagify"
352
+ msgstr "c’est le poids que vous avez économisé %sen utilisant Imagify"
353
 
354
  #: inc/admin/ui/bulk.php:230
355
  msgid "Well done!"
776
  #: inc/admin/ui/options.php:387
777
  #, php-format
778
  msgid "Original photography about %s"
779
+ msgstr "Photographie originale, environ %s"
780
 
781
  #: inc/admin/ui/options.php:392 inc/admin/ui/options.php:397
782
  #: inc/admin/ui/options.php:402
783
  #, php-format
784
  msgid "Optimized photography about %s"
785
+ msgstr "Photographie optimisée, environ %s"
786
 
787
  #: inc/admin/ui/options.php:407 inc/admin/ui/options.php:417
788
  #: inc/admin/ui/options.php:437 inc/admin/ui/options.php:458
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wp_media
3
  Tags: image optimizer, image optimiser, optimize, optimise, images, media, performance, seo, faster loading times, smushit, smush.it, compress, kraken-image-optimizer, tinypng, tinyjpeg, pngquant, jpegmini, ewww, pagespeed, pagespeed insights, sitespeed, optimize gif, optimize jpeg, optimize png, optimize animated gif, svg, improve pagerank, gtmetrix speed test, picture, optimization, image editor, pngout, upload speed, imagify, compression, compression image, webp, lossless, cwebp, media, jpegtran, image, image optimisation, image optimization, shrink, picture, photo, photos, optimize photos, compress, crunch, attachment, pictures, fast, image files, image quality, lossy, upload, kraken, resize, optipng, kraken image optimizer, photo optimization, gifsicle, krakenio, png, gmagick, image optimize, pdf, pdf optimisation, pdf optimization, optimize pdf, optimise pdf, shrink pdf, jpg, jpeg, jpg optimisation, jpg optimization, optimize jpg, optimise jpg, shrink jpg, gif, animated gif, optimize gif, optimise gif, optimizer, optimiser, compression, cruncher, image cruncher, compress png, compress jpg, compress jpeg, compress pdf, faster loading times, image optimiser, improve pagerank, optimise, optimize animated gif, optimise jpeg, optimize jpeg, optimize, optimise png, optimise pdf, optimize pdf, tinyjpg, short pixel, shortpixel, woocommerce compatible, reduce image size, wordpress compression, wordpress image tool, yahoo, yahoo smush.it, retina, wp retina, wp retina x2
4
  Requires at least: 3.7.0
5
  Tested up to: 4.4.1
6
- Stable tag: 1.3.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -117,6 +117,9 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
117
 
118
  == Changelog ==
119
 
 
 
 
120
  = 1.3.3 =
121
  * Bug Fix
122
  * Fixed behavior in multisite networks where Imagify options would not get saved when the plugin wasn't network-activated, but only activated for specific sites within the network.
3
  Tags: image optimizer, image optimiser, optimize, optimise, images, media, performance, seo, faster loading times, smushit, smush.it, compress, kraken-image-optimizer, tinypng, tinyjpeg, pngquant, jpegmini, ewww, pagespeed, pagespeed insights, sitespeed, optimize gif, optimize jpeg, optimize png, optimize animated gif, svg, improve pagerank, gtmetrix speed test, picture, optimization, image editor, pngout, upload speed, imagify, compression, compression image, webp, lossless, cwebp, media, jpegtran, image, image optimisation, image optimization, shrink, picture, photo, photos, optimize photos, compress, crunch, attachment, pictures, fast, image files, image quality, lossy, upload, kraken, resize, optipng, kraken image optimizer, photo optimization, gifsicle, krakenio, png, gmagick, image optimize, pdf, pdf optimisation, pdf optimization, optimize pdf, optimise pdf, shrink pdf, jpg, jpeg, jpg optimisation, jpg optimization, optimize jpg, optimise jpg, shrink jpg, gif, animated gif, optimize gif, optimise gif, optimizer, optimiser, compression, cruncher, image cruncher, compress png, compress jpg, compress jpeg, compress pdf, faster loading times, image optimiser, improve pagerank, optimise, optimize animated gif, optimise jpeg, optimize jpeg, optimize, optimise png, optimise pdf, optimize pdf, tinyjpg, short pixel, shortpixel, woocommerce compatible, reduce image size, wordpress compression, wordpress image tool, yahoo, yahoo smush.it, retina, wp retina, wp retina x2
4
  Requires at least: 3.7.0
5
  Tested up to: 4.4.1
6
+ Stable tag: 1.3.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
117
 
118
  == Changelog ==
119
 
120
+ = 1.3.4 =
121
+ * NEW: Add Italian translation
122
+
123
  = 1.3.3 =
124
  * Bug Fix
125
  * Fixed behavior in multisite networks where Imagify options would not get saved when the plugin wasn't network-activated, but only activated for specific sites within the network.