Advanced Custom Fields: Extended - Version 0.8.6.1

Version Description

  • Module: Dynamic Post Types/Taxonomies/Block Types/Options Pages - Slugs can now to edited & updated from the UI
  • Module: Dynamic Options Pages - Added a configuration icon on top of options page to easily switch to options page settings
  • Module: Dynamic Forms - User Action query var now returns the password if it has been created/generated during the action. This will allow developers to send the password confirmation via an e-mail action using query vars
  • Module: Dynamic Forms - Added {request:name} & {request:name:key} template tags to retrieve $_REQUEST $_GET & $_POST data
  • Module: Dynamic Forms - Added {get_option:name} & {get_option:name:key} template tags to retrieve an option from database
  • Module: Dynamic Forms - Enhanced "Post Action" query var which now returns post author data in the {query_var:my-action:post_author_data:field} template tag
  • Module: Dynamic Forms - Enhanced JS detection of the acf object to avoid potential errors when using aggressive minification
  • Module: Dynamic Forms - Fixed {current:user:show_welcome_panel} which was printed twice in the "Cheatsheet" tab
  • Module: Dynamic Forms - Fixed wp_unslash() on the success message
  • Module: Dynamic Forms - Fixed undefined post key notice which could occurs in some cases
  • Module: Dynamic Forms - Fixed template tags which were using id instead of ID
  • Module: Dynamic Forms - Fixed the conditional logic on custom form render when using complex fields like repeaters or flexible content
  • Module: Single Meta Save - acf meta is now updated on submission instead of being reset each time it is saved. This fix a potential problem when fields wouldn't be displayed to specific user roles
  • Module: PHP AutoSync - PHP files are now included only if the filename starts with group_*.php
  • Field: Columns - Added responsive breakpoints
  • Field: Button - Added Advanced Settings compatibility
  • Field: Advanced Link - Fixed a bug which could render an empty "Archive" default value artifact in post objects fields
  • Field: Advanced Link - Fixed required field validation
  • Field: Code Editor - Fixed line wrap in terms views
  • Field: WYSIWYG - Fixed the automatic smart delayed initialization in flexible content layouts
  • Field: WYSIWYG - Fixed init in Flexible Content layouts which could break when trying to open a layout before the complete page load
  • General: Settings API - Enhanced upgrade process
  • General: Settings API - acfe option now regenerate Post Types/Taxonomies/Block Types/Options Pages on reset
Download this release

Release Info

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

Code changes from version 0.8.6 to 0.8.6.1

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.8.6
6
  * Author: ACF Extended
7
  * Author URI: https://www.acf-extended.com
8
  * Text Domain: acfe
@@ -16,7 +16,7 @@ if(!class_exists('ACFE')):
16
  class ACFE{
17
 
18
  // Version
19
- var $version = '0.8.6';
20
 
21
  // Settings
22
  var $settings = array();
2
  /**
3
  * Plugin Name: Advanced Custom Fields: Extended
4
  * Description: Enhancement Suite which improves Advanced Custom Fields administration
5
+ * Version: 0.8.6.1
6
  * Author: ACF Extended
7
  * Author URI: https://www.acf-extended.com
8
  * Text Domain: acfe
16
  class ACFE{
17
 
18
  // Version
19
+ var $version = '0.8.6.1';
20
 
21
  // Settings
22
  var $settings = array();
assets/acf-extended-fc-modal-edit.js CHANGED
@@ -1,72 +1,72 @@
1
- (function($){
2
-
3
- if(typeof acf === 'undefined')
4
- return;
5
-
6
- /*
7
- * Init
8
- */
9
- var flexible = acf.getFieldType('flexible_content');
10
- var model = flexible.prototype;
11
-
12
- /*
13
- * Actions
14
- */
15
- model.events['click [data-action="acfe-flexible-modal-edit"]'] = 'acfeModalEdit';
16
- model.acfeModalEdit = function(e, $el){
17
-
18
- var flexible = this;
19
-
20
- // Layout
21
- var $layout = $el.closest('.layout');
22
-
23
- // Modal data
24
- var $modal = $layout.find('> .acfe-modal.-fields');
25
- var $handle = $layout.find('> .acf-fc-layout-handle');
26
-
27
- var $layout_order = $handle.find('> .acf-fc-layout-order').outerHTML();
28
- var $layout_title = $handle.find('.acfe-layout-title-text').text();
29
-
30
- var close = false;
31
- if(flexible.has('acfeFlexibleCloseButton')){
32
-
33
- close = acf.__('Close');
34
-
35
- }
36
-
37
- // Open modal
38
- acfe.modal.open($modal, {
39
- title: $layout_order + ' ' + $layout_title,
40
- footer: close,
41
- onOpen: function(){
42
-
43
- flexible.openLayout($layout);
44
-
45
- },
46
- onClose: function(){
47
-
48
- flexible.closeLayout($layout);
49
-
50
- }
51
- });
52
-
53
- };
54
-
55
- /*
56
- * Spawn
57
- */
58
- acf.addAction('new_field/type=flexible_content', function(flexible){
59
-
60
- if(flexible.has('acfeFlexibleModalEdition') && (flexible.has('acfeFlexiblePlaceholder') || flexible.has('acfeFlexiblePreview'))){
61
-
62
- // Remove Collapse Action
63
- flexible.removeEvents({'click [data-name="collapse-layout"]': 'onClickCollapse'});
64
-
65
- // Remove placeholder Collapse Action
66
- flexible.removeEvents({'click .acfe-fc-placeholder': 'onClickCollapse'});
67
-
68
- }
69
-
70
- });
71
-
72
  })(jQuery);
1
+ (function($){
2
+
3
+ if(typeof acf === 'undefined')
4
+ return;
5
+
6
+ /*
7
+ * Init
8
+ */
9
+ var flexible = acf.getFieldType('flexible_content');
10
+ var model = flexible.prototype;
11
+
12
+ /*
13
+ * Actions
14
+ */
15
+ model.events['click [data-action="acfe-flexible-modal-edit"]'] = 'acfeModalEdit';
16
+ model.acfeModalEdit = function(e, $el){
17
+
18
+ var flexible = this;
19
+
20
+ // Layout
21
+ var $layout = $el.closest('.layout');
22
+
23
+ // Modal data
24
+ var $modal = $layout.find('> .acfe-modal.-fields');
25
+ var $handle = $layout.find('> .acf-fc-layout-handle');
26
+
27
+ var $layout_order = $handle.find('> .acf-fc-layout-order').outerHTML();
28
+ var $layout_title = $handle.find('.acfe-layout-title-text').text();
29
+
30
+ var close = false;
31
+ if(flexible.has('acfeFlexibleCloseButton')){
32
+
33
+ close = acf.__('Close');
34
+
35
+ }
36
+
37
+ // Open modal
38
+ acfe.modal.open($modal, {
39
+ title: $layout_order + ' ' + $layout_title,
40
+ footer: close,
41
+ onOpen: function(){
42
+
43
+ flexible.openLayout($layout);
44
+
45
+ },
46
+ onClose: function(){
47
+
48
+ flexible.closeLayout($layout);
49
+
50
+ }
51
+ });
52
+
53
+ };
54
+
55
+ /*
56
+ * Spawn
57
+ */
58
+ acf.addAction('new_field/type=flexible_content', function(flexible){
59
+
60
+ if(flexible.has('acfeFlexibleModalEdition') && (flexible.has('acfeFlexiblePlaceholder') || flexible.has('acfeFlexiblePreview'))){
61
+
62
+ // Remove Collapse Action
63
+ flexible.removeEvents({'click [data-name="collapse-layout"]': 'onClickCollapse'});
64
+
65
+ // Remove placeholder Collapse Action
66
+ flexible.removeEvents({'click .acfe-fc-placeholder': 'onClickCollapse'});
67
+
68
+ }
69
+
70
+ });
71
+
72
  })(jQuery);
assets/acf-extended-fc.js CHANGED
@@ -150,6 +150,19 @@
150
 
151
  };
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  var acfeFlexibleDelayInit = function(editor){
154
 
155
  if(editor.has('id') || !editor.$el.is(':visible'))
@@ -159,6 +172,7 @@
159
 
160
  if($wrap.hasClass('delay')){
161
 
 
162
  $wrap.find('.acf-editor-toolbar').remove();
163
 
164
  // initialize
@@ -171,7 +185,6 @@
171
  acf.addAction('show_field/type=wysiwyg', acfeFlexibleDelayInit);
172
  acf.addAction('ready_field/type=wysiwyg', acfeFlexibleDelayInit);
173
 
174
-
175
  /*
176
  * Spawn
177
  */
150
 
151
  };
152
 
153
+ /*
154
+ * WYSIWYG
155
+ */
156
+ var wysiwyg = acf.getFieldType('wysiwyg').prototype;
157
+ wysiwyg.initialize = function(){
158
+
159
+ // initializeEditor if no delay
160
+ if( !this.has('id') && !this.$control().hasClass('delay') ) {
161
+ this.initializeEditor();
162
+ }
163
+
164
+ };
165
+
166
  var acfeFlexibleDelayInit = function(editor){
167
 
168
  if(editor.has('id') || !editor.$el.is(':visible'))
172
 
173
  if($wrap.hasClass('delay')){
174
 
175
+ $wrap.removeClass('delay');
176
  $wrap.find('.acf-editor-toolbar').remove();
177
 
178
  // initialize
185
  acf.addAction('show_field/type=wysiwyg', acfeFlexibleDelayInit);
186
  acf.addAction('ready_field/type=wysiwyg', acfeFlexibleDelayInit);
187
 
 
188
  /*
189
  * Spawn
190
  */
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.4
7
  Requires PHP: 5.6
8
- Stable tag: 0.8.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -689,7 +689,7 @@ function my_acfe_modules(){
689
 
690
  == Changelog ==
691
 
692
- = 0.8.6 =
693
  * Module: Dynamic Post Types/Taxonomies/Block Types/Options Pages - Slugs can now to edited & updated from the UI
694
  * Module: Dynamic Options Pages - Added a configuration icon on top of options page to easily switch to options page settings
695
  * Module: Dynamic Forms - User Action query var now returns the password if it has been created/generated during the action. This will allow developers to send the password confirmation via an e-mail action using query vars
@@ -709,7 +709,8 @@ function my_acfe_modules(){
709
  * Field: Advanced Link - Fixed a bug which could render an empty "Archive" default value artifact in post objects fields
710
  * Field: Advanced Link - Fixed required field validation
711
  * Field: Code Editor - Fixed line wrap in terms views
712
- * Field: WYSIWYG - Fixed the automatic smart delayed initialization in flexible content layouts which could break when trying to open a layout before the complete page load
 
713
  * General: Settings API - Enhanced upgrade process
714
  * General: Settings API - `acfe` option now regenerate Post Types/Taxonomies/Block Types/Options Pages on reset
715
 
5
  Requires at least: 4.9
6
  Tested up to: 5.4
7
  Requires PHP: 5.6
8
+ Stable tag: 0.8.6.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
689
 
690
  == Changelog ==
691
 
692
+ = 0.8.6.1 =
693
  * Module: Dynamic Post Types/Taxonomies/Block Types/Options Pages - Slugs can now to edited & updated from the UI
694
  * Module: Dynamic Options Pages - Added a configuration icon on top of options page to easily switch to options page settings
695
  * Module: Dynamic Forms - User Action query var now returns the password if it has been created/generated during the action. This will allow developers to send the password confirmation via an e-mail action using query vars
709
  * Field: Advanced Link - Fixed a bug which could render an empty "Archive" default value artifact in post objects fields
710
  * Field: Advanced Link - Fixed required field validation
711
  * Field: Code Editor - Fixed line wrap in terms views
712
+ * Field: WYSIWYG - Fixed the automatic smart delayed initialization in flexible content layouts
713
+ * Field: WYSIWYG - Fixed init in Flexible Content layouts which could break when trying to open a layout before the complete page load
714
  * General: Settings API - Enhanced upgrade process
715
  * General: Settings API - `acfe` option now regenerate Post Types/Taxonomies/Block Types/Options Pages on reset
716