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

Version Description

  • Use acf-image-crop/filename_postfix to allow custom filename postfixes
Download this release

Release Info

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

Code changes from version 1.4.8 to 1.4.9

acf-image-crop-v4.php CHANGED
@@ -780,7 +780,7 @@ class acf_field_image_crop extends acf_field_image
780
  $originalFileExtension = array_pop($originalFileName);
781
 
782
  // Generate new base filename
783
- $targetFileName = implode('.', $originalFileName) . '_' . $targetW . 'x' . $targetH . '_acf_cropped' . '.' . $originalFileExtension;
784
 
785
  // Generate target path new file using existing media library
786
  $targetFilePath = $mediaDir['path'] . '/' . wp_unique_filename( $mediaDir['path'], $targetFileName);
780
  $originalFileExtension = array_pop($originalFileName);
781
 
782
  // Generate new base filename
783
+ $targetFileName = implode('.', $originalFileName) . '_' . $targetW . 'x' . $targetH . apply_filters('acf-image-crop/filename_postfix', '_acf_cropped') . '.' . $originalFileExtension;
784
 
785
  // Generate target path new file using existing media library
786
  $targetFilePath = $mediaDir['path'] . '/' . wp_unique_filename( $mediaDir['path'], $targetFileName);
acf-image-crop-v5.php CHANGED
@@ -544,7 +544,8 @@ class acf_field_image_crop extends acf_field_image {
544
  $originalFileExtension = array_pop($originalFileName);
545
 
546
  // Generate new base filename
547
- $targetFileName = implode('.', $originalFileName) . '_' . $targetW . 'x' . $targetH . '_acf_cropped' . '.' . $originalFileExtension;
 
548
 
549
  // Generate target path new file using existing media library
550
  $targetFilePath = $mediaDir['path'] . '/' . wp_unique_filename( $mediaDir['path'], $targetFileName);
544
  $originalFileExtension = array_pop($originalFileName);
545
 
546
  // Generate new base filename
547
+ $targetFileName = implode('.', $originalFileName) . '_' . $targetW . 'x' . $targetH . apply_filters('acf-image-crop/filename_postfix', '_acf_cropped') . '.' . $originalFileExtension;
548
+
549
 
550
  // Generate target path new file using existing media library
551
  $targetFilePath = $mediaDir['path'] . '/' . wp_unique_filename( $mediaDir['path'], $targetFileName);
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.8
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.9
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.8
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.8 =
65
  * Fix button styling
66
  * Prevent php warnings for unset field settings
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.9
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.9 =
65
+ * Use acf-image-crop/filename_postfix to allow custom filename postfixes
66
+
67
  = 1.4.8 =
68
  * Fix button styling
69
  * Prevent php warnings for unset field settings