Imagify Image Optimizer - Version 1.5.2.1

Version Description

  • Bug Fix
    • Fix JS error: Uncaught ReferenceError: imagify is not defined in /assets/options.min.js
    • Don't show "Optimize" button during optimizing process in "Edit Media" screen
Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.2.1

Files changed (4) hide show
  1. assets/js/options.js +5 -5
  2. assets/js/options.min.js +4 -4
  3. imagify.php +2 -2
  4. readme.txt +2 -2
assets/js/options.js CHANGED
@@ -16,7 +16,7 @@ jQuery(function($){
16
  }
17
 
18
  if( $('#check_api_key').val() === value ) {
19
- $('#imagify-check-api-container').html('<span class="dashicons dashicons-yes"></span> ' + imagify.ValidApiKeyText);
20
  return false;
21
  }
22
 
@@ -24,7 +24,7 @@ jQuery(function($){
24
  xhr.abort();
25
  } else {
26
  $('#imagify-check-api-container').remove();
27
- obj.after( '<span id="imagify-check-api-container"><span class="imagify-spinner"></span>' + imagify.waitApiKeyCheckText + "</span>" );
28
  }
29
 
30
  busy = true;
@@ -36,8 +36,8 @@ jQuery(function($){
36
  } else {
37
  $('#imagify-check-api-container').remove();
38
  swal({
39
- title: imagify.ApiKeyCheckSuccessTitle,
40
- text: imagify.ApiKeyCheckSuccessText,
41
  type: "success",
42
  customClass: "imagify-sweet-alert"
43
  },
@@ -89,7 +89,7 @@ jQuery(function($){
89
  type: "info",
90
  customClass: "imagify-sweet-alert",
91
  showCancelButton: true,
92
- cancelButtonText: imagify.swalCancel
93
  }, function(isConfirm){
94
  if ( ! isConfirm ) {
95
  $_this.prop('checked', true);
16
  }
17
 
18
  if( $('#check_api_key').val() === value ) {
19
+ $('#imagify-check-api-container').html('<span class="dashicons dashicons-yes"></span> ' + imagifyAdmin.labels.ValidApiKeyText);
20
  return false;
21
  }
22
 
24
  xhr.abort();
25
  } else {
26
  $('#imagify-check-api-container').remove();
27
+ obj.after( '<span id="imagify-check-api-container"><span class="imagify-spinner"></span>' + imagifyAdmin.labels.waitApiKeyCheckText + "</span>" );
28
  }
29
 
30
  busy = true;
36
  } else {
37
  $('#imagify-check-api-container').remove();
38
  swal({
39
+ title: imagifyAdmin.labels.ApiKeyCheckSuccessTitle,
40
+ text: imagifyAdmin.labels.ApiKeyCheckSuccessText,
41
  type: "success",
42
  customClass: "imagify-sweet-alert"
43
  },
89
  type: "info",
90
  customClass: "imagify-sweet-alert",
91
  showCancelButton: true,
92
+ cancelButtonText: imagifyAdmin.labels.swalCancel
93
  }, function(isConfirm){
94
  if ( ! isConfirm ) {
95
  $_this.prop('checked', true);
assets/js/options.min.js CHANGED
@@ -1,4 +1,4 @@
1
- jQuery(function(a){var c=!1,d=!1,f=0<ajaxurl.indexOf("?")?"&":"?";a("#imagify-settings #api_key").blur(function(){var b=a(this),e=b.val();if(""===a.trim(e))return!1;if(a("#check_api_key").val()===e)return a("#imagify-check-api-container").html('<span class="dashicons dashicons-yes"></span> '+imagifyAdmin.ValidApiKeyText),!1;!0===c?d.abort():(a("#imagify-check-api-container").remove(),b.after('<span id="imagify-check-api-container"><span class="imagify-spinner"></span>'+imagifyAdmin.waitApiKeyCheckText+
2
- "</span>"));c=!0;d=a.get(ajaxurl+f+"action=imagify_check_api_key_validity&api_key="+b.val()+"&imagifycheckapikeynonce="+a("#imagifycheckapikeynonce").val()).done(function(b){b.success?(a("#imagify-check-api-container").remove(),swal({title:imagifyAdmin.ApiKeyCheckSuccessTitle,text:imagifyAdmin.ApiKeyCheckSuccessText,type:"success",customClass:"imagify-sweet-alert"},function(){location.reload()})):a("#imagify-check-api-container").html('<span class="dashicons dashicons-no"></span> '+b.data);c=!1})});
3
- a(".imagify-options-line").css("cursor","pointer").on("click",function(b){if("INPUT"!==b.target.nodeName)return a('input[aria-describedby="'+a(this).attr("id")+'"]').trigger("click"),!1});a(".imagify-settings th span").on("click",function(b){1===a(this).parent().next("td").find("input:checkbox").length&&a(this).parent().next("td").find("input:checkbox").trigger("click")});a(".imagify-options-line").find("input").on("change focus",function(){var b=a(this).closest(".imagify-options-line").prev("label").prev("input");
4
- b[0].checked||b.prop("checked",!0)});a(".imagify-settings-section").find("#backup").on("change",function(){if(!a(this).is(":checked")){var b=a(this);swal({title:imagifyOptions.noBackupTitle,text:imagifyOptions.noBackupText,type:"info",customClass:"imagify-sweet-alert",showCancelButton:!0,cancelButtonText:imagifyAdmin.swalCancel},function(a){a||b.prop("checked",!0)})}})});
1
+ jQuery(function(a){var c=!1,d=!1,f=0<ajaxurl.indexOf("?")?"&":"?";a("#imagify-settings #api_key").blur(function(){var b=a(this),e=b.val();if(""===a.trim(e))return!1;if(a("#check_api_key").val()===e)return a("#imagify-check-api-container").html('<span class="dashicons dashicons-yes"></span> '+imagifyAdmin.labels.ValidApiKeyText),!1;!0===c?d.abort():(a("#imagify-check-api-container").remove(),b.after('<span id="imagify-check-api-container"><span class="imagify-spinner"></span>'+imagifyAdmin.labels.waitApiKeyCheckText+
2
+ "</span>"));c=!0;d=a.get(ajaxurl+f+"action=imagify_check_api_key_validity&api_key="+b.val()+"&imagifycheckapikeynonce="+a("#imagifycheckapikeynonce").val()).done(function(b){b.success?(a("#imagify-check-api-container").remove(),swal({title:imagifyAdmin.labels.ApiKeyCheckSuccessTitle,text:imagifyAdmin.labels.ApiKeyCheckSuccessText,type:"success",customClass:"imagify-sweet-alert"},function(){location.reload()})):a("#imagify-check-api-container").html('<span class="dashicons dashicons-no"></span> '+
3
+ b.data);c=!1})});a(".imagify-options-line").css("cursor","pointer").on("click",function(b){if("INPUT"!==b.target.nodeName)return a('input[aria-describedby="'+a(this).attr("id")+'"]').trigger("click"),!1});a(".imagify-settings th span").on("click",function(b){1===a(this).parent().next("td").find("input:checkbox").length&&a(this).parent().next("td").find("input:checkbox").trigger("click")});a(".imagify-options-line").find("input").on("change focus",function(){var b=a(this).closest(".imagify-options-line").prev("label").prev("input");
4
+ b[0].checked||b.prop("checked",!0)});a(".imagify-settings-section").find("#backup").on("change",function(){if(!a(this).is(":checked")){var b=a(this);swal({title:imagifyOptions.noBackupTitle,text:imagifyOptions.noBackupText,type:"info",customClass:"imagify-sweet-alert",showCancelButton:!0,cancelButtonText:imagifyAdmin.labels.swalCancel},function(a){a||b.prop("checked",!0)})}})});
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 bandwith using Imagify, the new most advanced image optimization tool.
6
- Version: 1.5.2
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.5.2' );
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 losing 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.5.2.1
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.5.2.1' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wp_media
3
  Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 3.7.0
5
  Tested up to: 4.5.1
6
- Stable tag: 1.5.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -136,7 +136,7 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
136
 
137
  == Changelog ==
138
 
139
- = 1.5.2 =
140
  * Bug Fix
141
  * Fix JS error: Uncaught ReferenceError: imagify is not defined in /assets/options.min.js
142
  * Don't show "Optimize" button during optimizing process in "Edit Media" screen
3
  Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 3.7.0
5
  Tested up to: 4.5.1
6
+ Stable tag: 1.5.2.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
136
 
137
  == Changelog ==
138
 
139
+ = 1.5.2.1 =
140
  * Bug Fix
141
  * Fix JS error: Uncaught ReferenceError: imagify is not defined in /assets/options.min.js
142
  * Don't show "Optimize" button during optimizing process in "Edit Media" screen