Advanced Custom Fields: Image Crop Add-on - Version 1.4.12

Version Description

  • Fix compatibility with ACF Pro 5.6.0
Download this release

Release Info

Developer andersthorborg
Plugin Icon wp plugin Advanced Custom Fields: Image Crop Add-on
Version 1.4.12
Comparing to
See all releases

Code changes from version 1.4.11 to 1.4.12

Files changed (3) hide show
  1. acf-image-crop-v5.php +2 -9
  2. acf-image-crop.php +1 -1
  3. readme.txt +4 -1
acf-image-crop-v5.php CHANGED
@@ -4,7 +4,7 @@ class acf_field_image_crop extends acf_field_image {
4
 
5
 
6
  /*
7
- * __construct
8
  *
9
  * This function will setup the field type data
10
  *
@@ -16,7 +16,7 @@ class acf_field_image_crop extends acf_field_image {
16
  * @return n/a
17
  */
18
 
19
- function __construct() {
20
 
21
  /*
22
  * name (string) Single word, no spaces. Underscores allowed
@@ -80,15 +80,8 @@ class acf_field_image_crop extends acf_field_image {
80
  'size_warning' => __( 'Warning: The selected image is smaller than the required size!','acf-image_crop' ),
81
  'crop_error' => __( 'Sorry, an error occurred when trying to crop your image:')
82
  );
83
-
84
-
85
- // do not delete!
86
- acf_field::__construct();
87
- //parent::__construct();
88
-
89
  }
90
 
91
-
92
  // AJAX handler for retieving full image dimensions from ID
93
  public function crop_get_image_size()
94
  {
4
 
5
 
6
  /*
7
+ * initialize
8
  *
9
  * This function will setup the field type data
10
  *
16
  * @return n/a
17
  */
18
 
19
+ function initialize() {
20
 
21
  /*
22
  * name (string) Single word, no spaces. Underscores allowed
80
  'size_warning' => __( 'Warning: The selected image is smaller than the required size!','acf-image_crop' ),
81
  'crop_error' => __( 'Sorry, an error occurred when trying to crop your image:')
82
  );
 
 
 
 
 
 
83
  }
84
 
 
85
  // AJAX handler for retieving full image dimensions from ID
86
  public function crop_get_image_size()
87
  {
acf-image-crop.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Advanced Custom Fields: Image Crop Add-on
4
  Plugin URI: https://github.com/andersthorborg/ACF-Image-Crop
5
  Description: An image field making it possible/required for the user to crop the selected image to the specified image size or dimensions
6
- Version: 1.4.11
7
  Author: Anders Thorborg
8
  Author URI: http://thorb.org
9
  License: GPLv2 or later
3
  Plugin Name: Advanced Custom Fields: Image Crop Add-on
4
  Plugin URI: https://github.com/andersthorborg/ACF-Image-Crop
5
  Description: An image field making it possible/required for the user to crop the selected image to the specified image size or dimensions
6
+ Version: 1.4.12
7
  Author: Anders Thorborg
8
  Author URI: http://thorb.org
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: andersthorborg
3
  Tags: afc, advanced custom fields, image crop, image, crop
4
  Requires at least: 3.5
5
  Tested up to: 4.6
6
- Stable tag: 1.4.11
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -61,6 +61,9 @@ function my_register_fields()
61
 
62
  == Changelog ==
63
 
 
 
 
64
  = 1.4.11 =
65
  * Address issue with changed ACF Pro validation behavior causing php warnings when saving fields
66
 
3
  Tags: afc, advanced custom fields, image crop, image, crop
4
  Requires at least: 3.5
5
  Tested up to: 4.6
6
+ Stable tag: 1.4.12
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.4.12 =
65
+ * Fix compatibility with ACF Pro 5.6.0
66
+
67
  = 1.4.11 =
68
  * Address issue with changed ACF Pro validation behavior causing php warnings when saving fields
69