Advanced Custom Fields: Extended - Version 0.7.0.3

Version Description

  • Field: Flexible Content - 'Modal: Title' - The custom modal title now works correctly
  • Field: Flexible Content - 'Layouts State' - Fixed a problem where layouts title were incorrect when forcing layouts state
  • Compatibility: ACF Pro 5.7.13 - Fixed Archive Location 'All' PHP error (acf/location/rule_match filter)
Download this release

Release Info

Developer hwk-fr
Plugin Icon 128x128 Advanced Custom Fields: Extended
Version 0.7.0.3
Comparing to
See all releases

Code changes from version 0.7 to 0.7.0.3

acf-extended.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Advanced Custom Fields: Extended
4
  * Description: Enhancement Suite which improves Advanced Custom Fields administration
5
- * Version: 0.7
6
  * Author: ACF Extended
7
  * Author URI: https://www.acf-extended.com
8
  * Text Domain: acfe
2
  /**
3
  * Plugin Name: Advanced Custom Fields: Extended
4
  * Description: Enhancement Suite which improves Advanced Custom Fields administration
5
+ * Version: 0.7.0.3
6
  * Author: ACF Extended
7
  * Author URI: https://www.acf-extended.com
8
  * Text Domain: acfe
assets/acf-extended-flexible-content.js CHANGED
@@ -11,16 +11,26 @@
11
  // ACFE: Layout State - Collapse
12
  if(flexible.$el.attr('data-acfe-flexible-collapse')){
13
 
14
- if($layouts_added.length)
15
- flexible.closeLayout($layouts_added);
 
 
 
 
 
16
 
17
  }
18
 
19
  // ACFE: Layout State - Open
20
  if(flexible.$el.attr('data-acfe-flexible-open')){
21
 
22
- if($layouts_added.length)
23
- flexible.openLayout($layouts_added);
 
 
 
 
 
24
 
25
  }
26
 
@@ -100,8 +110,17 @@
100
  $layout.addClass('-hover');
101
  }
102
 
 
 
 
 
 
 
 
 
 
103
  $('#acfe-fc-modal-' + flexible.data.key).dialog({
104
- title: 'Add Row',
105
  dialogClass: 'acfe-fc-modal-wrap',
106
  autoOpen: false,
107
  draggable: false,
11
  // ACFE: Layout State - Collapse
12
  if(flexible.$el.attr('data-acfe-flexible-collapse')){
13
 
14
+ if($layouts_added.length){
15
+
16
+ $layouts_added.each(function(){
17
+ flexible.closeLayout($(this));
18
+ });
19
+
20
+ }
21
 
22
  }
23
 
24
  // ACFE: Layout State - Open
25
  if(flexible.$el.attr('data-acfe-flexible-open')){
26
 
27
+ if($layouts_added.length){
28
+
29
+ $layouts_added.each(function(){
30
+ flexible.openLayout($(this));
31
+ });
32
+
33
+ }
34
 
35
  }
36
 
110
  $layout.addClass('-hover');
111
  }
112
 
113
+ // ACFE: Modal Title
114
+ var $modal_title = 'Add Row';
115
+
116
+ if(flexible.$el.attr('data-acfe-flexible-modal-title')){
117
+
118
+ $modal_title = flexible.$el.attr('data-acfe-flexible-modal-title');
119
+
120
+ }
121
+
122
  $('#acfe-fc-modal-' + flexible.data.key).dialog({
123
+ title: $modal_title,
124
  dialogClass: 'acfe-fc-modal-wrap',
125
  autoOpen: false,
126
  draggable: false,
includes/locations/taxonomy-archive.php CHANGED
@@ -23,8 +23,8 @@ function acfe_location_taxonomy_archive_choices($choices){
23
  /**
24
  * ACFE Location: Fix Native ACF 'Taxonomy == All' Location Matching Taxonomies Archives
25
  */
26
- add_filter('acf/location/rule_match/taxonomy', 'acfe_location_taxonomy_archive_fix_all', 10, 4);
27
- function acfe_location_taxonomy_archive_fix_all($result, $rule, $screen, $field_group){
28
 
29
  if(!isset($screen['taxonomy']) || empty($screen['taxonomy']))
30
  return $result;
23
  /**
24
  * ACFE Location: Fix Native ACF 'Taxonomy == All' Location Matching Taxonomies Archives
25
  */
26
+ add_filter('acf/location/rule_match/taxonomy', 'acfe_location_taxonomy_archive_fix_all', 10, 3);
27
+ function acfe_location_taxonomy_archive_fix_all($result, $rule, $screen){
28
 
29
  if(!isset($screen['taxonomy']) || empty($screen['taxonomy']))
30
  return $result;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: acf, custom fields, meta, admin, fields, form, repeater, content
5
  Requires at least: 4.9
6
  Tested up to: 5.2
7
  Requires PHP: 5.6
8
- Stable tag: 0.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -273,6 +273,11 @@ Usage example: `echo get_flexible('my_flexible');`.
273
 
274
  == Changelog ==
275
 
 
 
 
 
 
276
  = 0.7 =
277
  * Field: Flexible Content - Added 'Stylised Button' setting which automatically hide native ACF 'empty' message and add style to 'Add row' button
278
  * Field: Flexible Content - Added 'Hide Empty Message' setting to hide native ACF 'empty' message
5
  Requires at least: 4.9
6
  Tested up to: 5.2
7
  Requires PHP: 5.6
8
+ Stable tag: 0.7.0.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
273
 
274
  == Changelog ==
275
 
276
+ = 0.7.0.3 =
277
+ * Field: Flexible Content - 'Modal: Title' - The custom modal title now works correctly
278
+ * Field: Flexible Content - 'Layouts State' - Fixed a problem where layouts title were incorrect when forcing layouts state
279
+ * Compatibility: ACF Pro 5.7.13 - Fixed Archive Location 'All' PHP error (acf/location/rule_match filter)
280
+
281
  = 0.7 =
282
  * Field: Flexible Content - Added 'Stylised Button' setting which automatically hide native ACF 'empty' message and add style to 'Add row' button
283
  * Field: Flexible Content - Added 'Hide Empty Message' setting to hide native ACF 'empty' message