WP Retina 2x - Version 6.3.1

Version Description

(2022/10/19) = * Fix: There was an issue when the options are re-initialized and the sizes were not refreshed.

Download this release

Release Info

Developer TigrouMeow
Plugin Icon 128x128 WP Retina 2x
Version 6.3.1
Comparing to
See all releases

Code changes from version 6.3.0 to 6.3.1

Files changed (3) hide show
  1. classes/core.php +3 -6
  2. readme.txt +4 -1
  3. wp-retina-2x.php +2 -2
classes/core.php CHANGED
@@ -119,7 +119,6 @@ class Meow_WR2X_Core {
119
 
120
  if ( is_null( $wr2x_disabled_sizes ) ) {
121
  $options['disabled_sizes'] = [ 'medium_large' ];
122
- $options['disable_medium_large'] = null;
123
  }
124
  update_option( $this->option_name, $options );
125
  }
@@ -1040,7 +1039,7 @@ class Meow_WR2X_Core {
1040
 
1041
  function get_image_sizes( $output_type = OBJECT, $options = null ) {
1042
  $sizes = array();
1043
- $options = $options ?? $this->get_all_options();
1044
  $needs_update = false;
1045
 
1046
  global $_wp_additional_image_sizes;
@@ -1105,8 +1104,6 @@ class Meow_WR2X_Core {
1105
  usort( $disabled_to_add, array( $this, 'sizes_sort_func' ) );
1106
  $sizes = array_merge( $sizes, $disabled_to_add );
1107
 
1108
- // if ( $this->get_option( 'disable_medium_large' ) )
1109
- // unset( $sizes['medium_large'] );
1110
  if ( $output_type === ARRAY_A ) {
1111
  return array_values( $sizes );
1112
  }
@@ -1600,12 +1597,11 @@ class Meow_WR2X_Core {
1600
  'picturefill_css_background' => false,
1601
  'disable_responsive' => false,
1602
  'full_size' => false,
1603
- 'quality' => null,
1604
  'over_http_check' => false,
1605
  'easyio_domain' => '',
1606
  'cdn_domain' => '',
1607
  'easyio_lossless' => '',
1608
- 'disable_medium_large' => null,
1609
  'debug' => false,
1610
  'picturefill_noscript' => false,
1611
  'image_replace' => false,
@@ -1623,6 +1619,7 @@ class Meow_WR2X_Core {
1623
  continue;
1624
  }
1625
  }
 
1626
  return $options;
1627
  }
1628
 
119
 
120
  if ( is_null( $wr2x_disabled_sizes ) ) {
121
  $options['disabled_sizes'] = [ 'medium_large' ];
 
122
  }
123
  update_option( $this->option_name, $options );
124
  }
1039
 
1040
  function get_image_sizes( $output_type = OBJECT, $options = null ) {
1041
  $sizes = array();
1042
+ $options = $options ?? [];
1043
  $needs_update = false;
1044
 
1045
  global $_wp_additional_image_sizes;
1104
  usort( $disabled_to_add, array( $this, 'sizes_sort_func' ) );
1105
  $sizes = array_merge( $sizes, $disabled_to_add );
1106
 
 
 
1107
  if ( $output_type === ARRAY_A ) {
1108
  return array_values( $sizes );
1109
  }
1597
  'picturefill_css_background' => false,
1598
  'disable_responsive' => false,
1599
  'full_size' => false,
1600
+ 'quality' => 75,
1601
  'over_http_check' => false,
1602
  'easyio_domain' => '',
1603
  'cdn_domain' => '',
1604
  'easyio_lossless' => '',
 
1605
  'debug' => false,
1606
  'picturefill_noscript' => false,
1607
  'image_replace' => false,
1619
  continue;
1620
  }
1621
  }
1622
+ $options['sizes'] = $this->get_image_sizes( ARRAY_A, $options );
1623
  return $options;
1624
  }
1625
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://meowapps.com/donation/
5
  Requires at least: 5.0
6
  Tested up to: 6.0.1
7
  Requires PHP: 7.0
8
- Stable tag: 6.3.0
9
 
10
  Retina, Regenerate Thumbnails, Image Sizes Management, Replace Images, Image Threshold and more.
11
 
@@ -52,6 +52,9 @@ The plugin cannot inject CSS to handles the images added through CSS, that's bot
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = 6.3.0 (2022/10/12) =
56
  * Update: Enhanced way to handle options.
57
 
5
  Requires at least: 5.0
6
  Tested up to: 6.0.1
7
  Requires PHP: 7.0
8
+ Stable tag: 6.3.1
9
 
10
  Retina, Regenerate Thumbnails, Image Sizes Management, Replace Images, Image Threshold and more.
11
 
52
 
53
  == Changelog ==
54
 
55
+ = 6.3.1 (2022/10/19) =
56
+ * Fix: There was an issue when the options are re-initialized and the sizes were not refreshed.
57
+
58
  = 6.3.0 (2022/10/12) =
59
  * Update: Enhanced way to handle options.
60
 
wp-retina-2x.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Perfect Images (Retina, Thumbnails, Replace)
4
  Plugin URI: https://meowapps.com
5
  Description: Retina, Replace Images, Regenerate Thumbnails, Image Sizes Management, Image Threshold and more.
6
- Version: 6.3.0
7
  Author: Jordy Meow
8
  Author URI: https://meowapps.com
9
  Text Domain: wp-retina-2x
@@ -15,7 +15,7 @@ Originally developed for two of my websites:
15
  */
16
 
17
  if ( !defined( 'WR2X_VERSION' ) ) {
18
- define( 'WR2X_VERSION', '6.3.0' );
19
  define( 'WR2X_PREFIX', 'wr2x' );
20
  define( 'WR2X_DOMAIN', ' wp-retina-2x' );
21
  define( 'WR2X_ENTRY', __FILE__ );
3
  Plugin Name: Perfect Images (Retina, Thumbnails, Replace)
4
  Plugin URI: https://meowapps.com
5
  Description: Retina, Replace Images, Regenerate Thumbnails, Image Sizes Management, Image Threshold and more.
6
+ Version: 6.3.1
7
  Author: Jordy Meow
8
  Author URI: https://meowapps.com
9
  Text Domain: wp-retina-2x
15
  */
16
 
17
  if ( !defined( 'WR2X_VERSION' ) ) {
18
+ define( 'WR2X_VERSION', '6.3.1' );
19
  define( 'WR2X_PREFIX', 'wr2x' );
20
  define( 'WR2X_DOMAIN', ' wp-retina-2x' );
21
  define( 'WR2X_ENTRY', __FILE__ );