Kadence Themes Toolkit - Version 4.2

Version Description

  • Update: Fix for Photon
Download this release

Release Info

Developer britner
Plugin Icon wp plugin Kadence Themes Toolkit
Version 4.2
Comparing to
See all releases

Code changes from version 4.1 to 4.2

Files changed (3) hide show
  1. gallery.php +6 -4
  2. readme.txt +4 -1
  3. virtue_toolkit.php +1 -1
gallery.php CHANGED
@@ -51,12 +51,14 @@ if ( ! class_exists( 'Kadence_Toolkit_Get_Image' ) ) {
51
  //Check for jetpack
52
  if( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) {
53
  $args = array( 'resize' => $width . ',' . $height );
54
- $image = array (
55
- 0 => jetpack_photon_url( wp_get_attachment_image_url($id, 'full'), $args ),
 
56
  1 => $width,
57
  2 => $height,
58
- 3 => '',
59
- 4 => $id
 
60
  );
61
  } else if( self::toolkit_image_size_already_exists( $id, $width, $height ) ) {
62
 
51
  //Check for jetpack
52
  if( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) {
53
  $args = array( 'resize' => $width . ',' . $height );
54
+ $image_url = wp_get_attachment_image_url($id, 'full');
55
+ return array (
56
+ 0 => jetpack_photon_url( $image_url, $args ),
57
  1 => $width,
58
  2 => $height,
59
+ 3 => self::toolkit_get_srcset_output($id, $image_url, $width, $height),
60
+ 4 => $image_url,
61
+ 5 => $id
62
  );
63
  } else if( self::toolkit_image_size_already_exists( $id, $width, $height ) ) {
64
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: britner
3
  Tags:
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
- Stable tag: 4.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -43,6 +43,9 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
43
 
44
  == Changelog ==
45
 
 
 
 
46
  = 4.1 =
47
  * Update: Add Kadence Image processing.
48
  * Update: Add profile meta boxes.
3
  Tags:
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
+ Stable tag: 4.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
43
 
44
  == Changelog ==
45
 
46
+ = 4.2 =
47
+ * Update: Fix for Photon
48
+
49
  = 4.1 =
50
  * Update: Add Kadence Image processing.
51
  * Update: Add profile meta boxes.
virtue_toolkit.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Kadence Toolkit
5
  Description: Custom Portfolio and Shortcode functionality for free Kadence WordPress themes
6
- Version: 4.1
7
  Author: Kadence Themes
8
  Author URI: https://kadencethemes.com/
9
  License: GPLv2 or later
3
  /*
4
  Plugin Name: Kadence Toolkit
5
  Description: Custom Portfolio and Shortcode functionality for free Kadence WordPress themes
6
+ Version: 4.2
7
  Author: Kadence Themes
8
  Author URI: https://kadencethemes.com/
9
  License: GPLv2 or later