Simple Image Sizes - Version 2.4.2

Version Description

Download this release

Release Info

Developer Rahe
Plugin Icon wp plugin Simple Image Sizes
Version 2.4.2
Comparing to
See all releases

Code changes from version 2.4.1 to 2.4.2

Files changed (3) hide show
  1. inc/class.admin.php +8 -8
  2. readme.txt +3 -1
  3. simple_image_sizes.php +4 -4
inc/class.admin.php CHANGED
@@ -601,6 +601,14 @@ Class SISAdmin {
601
 
602
  $sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes );
603
 
 
 
 
 
 
 
 
 
604
  foreach ( $sizes as $size => $size_data ) {
605
  if( isset( $thumbnails ) )
606
  if( !in_array( $size, $thumbnails ) ) {
@@ -619,14 +627,6 @@ Class SISAdmin {
619
  }
620
  }
621
 
622
- // Only if not all sizes
623
- if( is_array( $thumbnails ) ) {
624
- // Fill the array with the other sizes not have to be done
625
- foreach( $meta_datas['sizes'] as $name => $fsize ) {
626
- $metadata['sizes'][$name] = $fsize;
627
- }
628
- }
629
-
630
  // fetch additional metadata from exif/iptc
631
  $image_meta = wp_read_image_metadata( $file );
632
  if ( $image_meta ) {
601
 
602
  $sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes );
603
 
604
+ // Only if not all sizes
605
+ if( isset( $thumbnails ) && is_array( $thumbnails ) ) {
606
+ // Fill the array with the other sizes not have to be done
607
+ foreach( $meta_datas['sizes'] as $name => $fsize ) {
608
+ $metadata['sizes'][$name] = $fsize;
609
+ }
610
+ }
611
+
612
  foreach ( $sizes as $size => $size_data ) {
613
  if( isset( $thumbnails ) )
614
  if( !in_array( $size, $thumbnails ) ) {
627
  }
628
  }
629
 
 
 
 
 
 
 
 
 
630
  // fetch additional metadata from exif/iptc
631
  $image_meta = wp_read_image_metadata( $file );
632
  if ( $image_meta ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.beapi.fr/donate/
4
  Tags: images, image, custom sizes, custom images, thumbnail regenerate, thumbnail, regenerate
5
  Requires at least: 3.5
6
  Tested up to: 3.5
7
- Stable tag: 2.4.1
8
 
9
  == Description ==
10
 
@@ -38,6 +38,8 @@ Contribute on https://github.com/Rahe/Simple-image-sizes
38
  4. Regenerating image sizes
39
 
40
  == Changelog ==
 
 
41
  * 2.4.1
42
  * Remove function not working on admin file
43
  * 2.4
4
  Tags: images, image, custom sizes, custom images, thumbnail regenerate, thumbnail, regenerate
5
  Requires at least: 3.5
6
  Tested up to: 3.5
7
+ Stable tag: 2.4.2
8
 
9
  == Description ==
10
 
38
  4. Regenerating image sizes
39
 
40
  == Changelog ==
41
+ * 2.4.2
42
+ * Selective regeneration fix by g100g on http://wordpress.org/support/topic/regenerating-fix
43
  * 2.4.1
44
  * Remove function not working on admin file
45
  * 2.4
simple_image_sizes.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
- Plugin Name: Simple Image Size
4
- Plugin URI: http://redmine.beapi.fr/projects/show/simple-image-sizes
5
  Description: Add options in media setting page for images sizes
6
- Version: 2.4.1
7
  Author: Rahe
8
  Author URI: http://nicolas-juen.fr
9
  Text Domain: sis
@@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29
 
30
  define( 'SIS_URL', plugins_url('', __FILE__) );
31
  define( 'SIS_DIR', dirname(__FILE__) );
32
- define( 'SIS_VERSION', '2.4.1' );
33
  define( 'SIS_OPTION', 'custom_image_sizes' );
34
 
35
  require_once( SIS_DIR . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'class.admin.php' );
1
  <?php
2
  /*
3
+ Plugin Name: Simple Image Sizes
4
+ Plugin URI: https://github.com/Rahe/Simple-image-sizes
5
  Description: Add options in media setting page for images sizes
6
+ Version: 2.4.2
7
  Author: Rahe
8
  Author URI: http://nicolas-juen.fr
9
  Text Domain: sis
29
 
30
  define( 'SIS_URL', plugins_url('', __FILE__) );
31
  define( 'SIS_DIR', dirname(__FILE__) );
32
+ define( 'SIS_VERSION', '2.4.2' );
33
  define( 'SIS_OPTION', 'custom_image_sizes' );
34
 
35
  require_once( SIS_DIR . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'class.admin.php' );