ShortPixel Image Optimizer - Version 3.3.5

Version Description

  • fix tabbed layout height on settings page with API key not validated
Download this release

Release Info

Developer ShortPixel
Plugin Icon 128x128 ShortPixel Image Optimizer
Version 3.3.5
Comparing to
See all releases

Code changes from version 3.3.4 to 3.3.5

Files changed (4) hide show
  1. js/short-pixel.js +1 -1
  2. readme.txt +4 -1
  3. shortpixel_view.php +2 -0
  4. wp-shortpixel.php +2 -2
js/short-pixel.js CHANGED
@@ -47,7 +47,7 @@ var ShortPixel = function() {
47
  }
48
 
49
  function adjustSettingsTabsHeight(){
50
- var sectionHeight = jQuery('#wp_shortpixel_options').height() + 60;
51
  sectionHeight = Math.max(sectionHeight, jQuery('section#tab-resources .area1').height() + 20);
52
  jQuery('#shortpixel-settings-tabs').css('height', sectionHeight);
53
  jQuery('#shortpixel-settings-tabs section').css('height', sectionHeight);
47
  }
48
 
49
  function adjustSettingsTabsHeight(){
50
+ var sectionHeight = jQuery('.wp-shortpixel-options').height() + 60;
51
  sectionHeight = Math.max(sectionHeight, jQuery('section#tab-resources .area1').height() + 20);
52
  jQuery('#shortpixel-settings-tabs').css('height', sectionHeight);
53
  jQuery('#shortpixel-settings-tabs section').css('height', sectionHeight);
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: image optimizer, image optimization, compress pdf, compress jpeg, compress
5
 
6
  Requires at least: 3.2.0
7
  Tested up to: 4.5
8
- Stable tag: 3.3.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -193,6 +193,9 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
193
 
194
  == Changelog ==
195
 
 
 
 
196
  = 3.3.4 =
197
 
198
  * Fix Settings Resources display
5
 
6
  Requires at least: 3.2.0
7
  Tested up to: 4.5
8
+ Stable tag: 3.3.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
193
 
194
  == Changelog ==
195
 
196
+ = 3.3.5 =
197
+ * fix tabbed layout height on settings page with API key not validated
198
+
199
  = 3.3.4 =
200
 
201
  * Fix Settings Resources display
shortpixel_view.php CHANGED
@@ -405,6 +405,7 @@ class ShortPixelView {
405
  $minSizes = $this->ctrl->getMaxIntermediateImageSize();
406
  $thumbnailsToProcess = isset($quotaData['totalFiles']) ? ($quotaData['totalFiles'] - $quotaData['mainFiles']) - ($quotaData['totalProcessedFiles'] - $quotaData['mainProcessedFiles']) : 0;
407
  ?>
 
408
  <?php if($this->ctrl->getVerifiedKey()) { ?>
409
  <p>New images uploaded to the Media Library will be optimized automatically.<br/>If you have existing images you would like to optimize, you can use the <a href="<?php echo(get_admin_url());?>upload.php?page=wp-short-pixel-bulk">Bulk Optimization Tool</a>.</p>
410
  <?php } else {
@@ -512,6 +513,7 @@ class ShortPixelView {
512
  <input type="submit" name="save" id="bulk" class="button button-primary" title="Save and go to the Bulk Processing page" value="Save and Go to Bulk Process"> &nbsp;
513
  </p>
514
  </form>
 
515
  <script>
516
  var rad = document.wp_shortpixel_options.compressionType;
517
  var prev = null;
405
  $minSizes = $this->ctrl->getMaxIntermediateImageSize();
406
  $thumbnailsToProcess = isset($quotaData['totalFiles']) ? ($quotaData['totalFiles'] - $quotaData['mainFiles']) - ($quotaData['totalProcessedFiles'] - $quotaData['mainProcessedFiles']) : 0;
407
  ?>
408
+ <div class="wp-shortpixel-options">
409
  <?php if($this->ctrl->getVerifiedKey()) { ?>
410
  <p>New images uploaded to the Media Library will be optimized automatically.<br/>If you have existing images you would like to optimize, you can use the <a href="<?php echo(get_admin_url());?>upload.php?page=wp-short-pixel-bulk">Bulk Optimization Tool</a>.</p>
411
  <?php } else {
513
  <input type="submit" name="save" id="bulk" class="button button-primary" title="Save and go to the Bulk Processing page" value="Save and Go to Bulk Process"> &nbsp;
514
  </p>
515
  </form>
516
+ </div>
517
  <script>
518
  var rad = document.wp_shortpixel_options.compressionType;
519
  var prev = null;
wp-shortpixel.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ShortPixel Image Optimizer
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
- * Version: 3.3.4
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
@@ -22,7 +22,7 @@ define('SP_RESET_ON_ACTIVATE', false); //if true TODO set false
22
 
23
  define('SP_AFFILIATE_CODE', '');
24
 
25
- define('PLUGIN_VERSION', "3.3.4");
26
  define('SP_MAX_TIMEOUT', 10);
27
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
28
  define('SP_BACKUP', 'ShortpixelBackups');
3
  * Plugin Name: ShortPixel Image Optimizer
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
+ * Version: 3.3.5
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
22
 
23
  define('SP_AFFILIATE_CODE', '');
24
 
25
+ define('PLUGIN_VERSION', "3.3.5");
26
  define('SP_MAX_TIMEOUT', 10);
27
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
28
  define('SP_BACKUP', 'ShortpixelBackups');