Version Description
- fix a php-notice displayed on the settings-screen
Download this release
Release Info
Developer | Volkmar Kantor |
Plugin | Crop-Thumbnails |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- crop-thumbnails.php +2 -2
- functions/helper.php +7 -5
- readme.txt +4 -1
crop-thumbnails.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wordpress.org/extend/plugins/crop-thumbnails/
|
5 |
* Author: Volkmar Kantor
|
6 |
* Author URI: https://www.totalmedial.de
|
7 |
-
* Version: 1.2.
|
8 |
* Description: The easy way to adjust your cropped image sizes.
|
9 |
*
|
10 |
*
|
@@ -26,7 +26,7 @@
|
|
26 |
*/
|
27 |
|
28 |
|
29 |
-
define('CROP_THUMBNAILS_VERSION','1.2.
|
30 |
|
31 |
|
32 |
function cptLoadLanguage() {
|
4 |
* Plugin URI: https://wordpress.org/extend/plugins/crop-thumbnails/
|
5 |
* Author: Volkmar Kantor
|
6 |
* Author URI: https://www.totalmedial.de
|
7 |
+
* Version: 1.2.3
|
8 |
* Description: The easy way to adjust your cropped image sizes.
|
9 |
*
|
10 |
*
|
26 |
*/
|
27 |
|
28 |
|
29 |
+
define('CROP_THUMBNAILS_VERSION','1.2.3');
|
30 |
|
31 |
|
32 |
function cptLoadLanguage() {
|
functions/helper.php
CHANGED
@@ -62,11 +62,13 @@ class CropThumbnailsHelper {
|
|
62 |
$sizes[ $sizeId ]['height'] = intval(get_option( $sizeId . '_size_h' ));
|
63 |
$sizes[ $sizeId ]['crop'] = (bool) get_option( $sizeId . '_crop' );
|
64 |
} else {
|
65 |
-
$
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
70 |
}
|
71 |
$sizes[ $sizeId ]['name'] = $theName;
|
72 |
$sizes[ $sizeId ]['id'] = $sizeId;
|
62 |
$sizes[ $sizeId ]['height'] = intval(get_option( $sizeId . '_size_h' ));
|
63 |
$sizes[ $sizeId ]['crop'] = (bool) get_option( $sizeId . '_crop' );
|
64 |
} else {
|
65 |
+
if(!empty($_wp_additional_image_sizes[ $sizeId ])) {
|
66 |
+
$sizes[ $sizeId ] = array(
|
67 |
+
'width' => intval($_wp_additional_image_sizes[ $sizeId ]['width']),
|
68 |
+
'height' => intval($_wp_additional_image_sizes[ $sizeId ]['height']),
|
69 |
+
'crop' => (bool) $_wp_additional_image_sizes[ $sizeId ]['crop']
|
70 |
+
);
|
71 |
+
}
|
72 |
}
|
73 |
$sizes[ $sizeId ]['name'] = $theName;
|
74 |
$sizes[ $sizeId ]['id'] = $sizeId;
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: post-thumbnails, images, media library
|
|
5 |
Requires at least: 4.6
|
6 |
Requires PHP: 5.3.0
|
7 |
Tested up to: 5.0
|
8 |
-
Stable tag: 1.2.
|
9 |
License: GPL v3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -123,6 +123,9 @@ If you fork and planning to publish the forked plugin, please contact me.
|
|
123 |
5. Quicktest on settings-page, to check if your system is correct setup.
|
124 |
|
125 |
== Changelog ==
|
|
|
|
|
|
|
126 |
= 1.2.2 =
|
127 |
* fix calling a non static function in a static statically (fixes a bug where the plugin do not run locally)
|
128 |
|
5 |
Requires at least: 4.6
|
6 |
Requires PHP: 5.3.0
|
7 |
Tested up to: 5.0
|
8 |
+
Stable tag: 1.2.3
|
9 |
License: GPL v3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
123 |
5. Quicktest on settings-page, to check if your system is correct setup.
|
124 |
|
125 |
== Changelog ==
|
126 |
+
= 1.2.3 =
|
127 |
+
* fix a php-notice displayed on the settings-screen
|
128 |
+
|
129 |
= 1.2.2 =
|
130 |
* fix calling a non static function in a static statically (fixes a bug where the plugin do not run locally)
|
131 |
|