Version Description
- Update: Show 6.1 Support.
- Fix: Possible notice from php8
Download this release
Release Info
Developer | britner |
Plugin | Kadence Themes Toolkit |
Version | 4.9.8 |
Comparing to | |
See all releases |
Code changes from version 4.9.7 to 4.9.8
- gallery.php +6 -6
- kadence_image_processing.php +8 -6
- readme.txt +6 -2
- virtue_toolkit.php +1 -1
gallery.php
CHANGED
@@ -36,13 +36,13 @@ if ( ! class_exists( 'Kadence_Toolkit_Get_Image' ) ) {
|
|
36 |
$org_height = true;
|
37 |
if(empty($height) ) {
|
38 |
$org_height = false;
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
} else if(empty($width) ) {
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
}
|
47 |
// Now we checked for an ID, made sure the width and height have values lets check if we can make the size at all
|
48 |
if ( self::toolkit_image_size_larger_than_original( $id, $width, $height ) ) {
|
36 |
$org_height = true;
|
37 |
if(empty($height) ) {
|
38 |
$org_height = false;
|
39 |
+
$image_attributes = wp_get_attachment_image_src( $id, 'full' );
|
40 |
+
$sizes = image_resize_dimensions($image_attributes[1], $image_attributes[2], $width, null, false );
|
41 |
+
$height = ( isset( $sizes[5] ) ? $sizes[5] : '' );
|
42 |
} else if(empty($width) ) {
|
43 |
+
$image_attributes = wp_get_attachment_image_src( $id, 'full' );
|
44 |
+
$sizes = image_resize_dimensions($image_attributes[1], $image_attributes[2], null, $height, false );
|
45 |
+
$width = ( isset( $sizes[4] ) ? $sizes[4] : '' );
|
46 |
}
|
47 |
// Now we checked for an ID, made sure the width and height have values lets check if we can make the size at all
|
48 |
if ( self::toolkit_image_size_larger_than_original( $id, $width, $height ) ) {
|
kadence_image_processing.php
CHANGED
@@ -74,14 +74,16 @@ if ( ! class_exists( 'Kadence_Image_Processing' ) ) {
|
|
74 |
return $check;
|
75 |
}
|
76 |
public function process( $id = null, $width = '', $height = '' ) {
|
77 |
-
$
|
|
|
|
|
78 |
$retina = array();
|
79 |
if ( apply_filters( 'kadence_retina_support', true ) ) {
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
// If we haven't created the image yet, lets do that now.
|
86 |
$created = false;
|
87 |
foreach ( $sizes as $size ) {
|
74 |
return $check;
|
75 |
}
|
76 |
public function process( $id = null, $width = '', $height = '' ) {
|
77 |
+
$width = absint( $width );
|
78 |
+
$height = absint( $height );
|
79 |
+
$sizes = array( array( $width, $height ) );
|
80 |
$retina = array();
|
81 |
if ( apply_filters( 'kadence_retina_support', true ) ) {
|
82 |
+
$retina_w = $width*2;
|
83 |
+
$retina_h = $height*2;
|
84 |
+
$retina = array(array($retina_w, $retina_h));
|
85 |
+
}
|
86 |
+
$sizes = array_reverse(array_merge($sizes,$retina));
|
87 |
// If we haven't created the image yet, lets do that now.
|
88 |
$created = false;
|
89 |
foreach ( $sizes as $size ) {
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: britner
|
3 |
Tags:
|
4 |
Requires at least: 4.5
|
5 |
-
Tested up to: 6.
|
6 |
-
Stable tag: 4.9.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -43,6 +43,10 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
|
|
46 |
= 4.9.7 =
|
47 |
* Update: 6.0 Support.
|
48 |
* Fix: Possible notice from php8
|
2 |
Contributors: britner
|
3 |
Tags:
|
4 |
Requires at least: 4.5
|
5 |
+
Tested up to: 6.1
|
6 |
+
Stable tag: 4.9.8
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 4.9.8 =
|
47 |
+
* Update: Show 6.1 Support.
|
48 |
+
* Fix: Possible notice from php8
|
49 |
+
|
50 |
= 4.9.7 =
|
51 |
* Update: 6.0 Support.
|
52 |
* Fix: Possible notice from php8
|
virtue_toolkit.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Virtue/Ascend/Pinnacle Toolkit
|
4 |
* Description: Custom Portfolio and Shortcode functionality for free Virtue, Ascend, and Pinnacle WordPress themes.
|
5 |
-
* Version: 4.9.
|
6 |
* Author: Kadence WP
|
7 |
* Author URI: https://kadencewp.com/
|
8 |
* License: GPLv2 or later
|
2 |
/**
|
3 |
* Plugin Name: Virtue/Ascend/Pinnacle Toolkit
|
4 |
* Description: Custom Portfolio and Shortcode functionality for free Virtue, Ascend, and Pinnacle WordPress themes.
|
5 |
+
* Version: 4.9.8
|
6 |
* Author: Kadence WP
|
7 |
* Author URI: https://kadencewp.com/
|
8 |
* License: GPLv2 or later
|