Crop-Thumbnails - Version 1.2.1

Version Description

  • fix a javascript-bug that occurs in Wordpress 4.9.2 in relation with yoast seo-plugin
Download this release

Release Info

Developer Volkmar Kantor
Plugin Icon Crop-Thumbnails
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.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.0
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.0');
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.1
8
  * Description: The easy way to adjust your cropped image sizes.
9
  *
10
  *
26
  */
27
 
28
 
29
+ define('CROP_THUMBNAILS_VERSION','1.2.1');
30
 
31
 
32
  function cptLoadLanguage() {
functions/backendpreparer.php CHANGED
@@ -201,13 +201,14 @@ jQuery(document).ready(function($) {
201
  )
202
  );
203
  }
204
- }
205
-
206
- wp.hooks.addFilter(
207
- 'editor.PostFeaturedImage',
208
- 'crop-thumbnails/wrap-post-featured-image',
209
- wrapPostFeaturedImage
210
- );
 
211
  }
212
 
213
  <?php if(self::showCropButtonOnThisAdminPage()) : ?>
201
  )
202
  );
203
  }
204
+ }
205
+ if(typeof wp.hooks !== 'undefined' && typeof wp.hooks.addFilter !== 'undefined') {
206
+ wp.hooks.addFilter(
207
+ 'editor.PostFeaturedImage',
208
+ 'crop-thumbnails/wrap-post-featured-image',
209
+ wrapPostFeaturedImage
210
+ );
211
+ }
212
  }
213
 
214
  <?php if(self::showCropButtonOnThisAdminPage()) : ?>
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.0
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.0 =
127
  * the used cropping data are now stored in the image after the crop, making it possible to code a plugin for restoring the cropped region on new image-sizes
128
  * fix for hiding crop sizes is not working when the image_size_names_choose-filter is used for that post-type
5
  Requires at least: 4.6
6
  Requires PHP: 5.3.0
7
  Tested up to: 5.0
8
+ Stable tag: 1.2.1
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.1 =
127
+ * fix a javascript-bug that occurs in Wordpress 4.9.2 in relation with yoast seo-plugin
128
+
129
  = 1.2.0 =
130
  * the used cropping data are now stored in the image after the crop, making it possible to code a plugin for restoring the cropped region on new image-sizes
131
  * fix for hiding crop sizes is not working when the image_size_names_choose-filter is used for that post-type