Advanced Custom Fields: Extended - Version 0.8.3.1

Version Description

  • Field: Flexible Content - Fixed PHP Undefined index: acfe_flexible_modal notice
  • Fields: Select2 CSS Enhanced - Fixed forced height when in multiple mode
  • Fields: Select2 CSS Enhanced - Global standardization of generic select input & select2 style
  • Module: Dynamic Forms - Added missing hook filter('acfe/form/load/action=my-action-alias', $args, $post_id);
  • General: Fixed typo in Readme
Download this release

Release Info

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

Code changes from version 0.8.3 to 0.8.3.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.3
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.3';
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.3.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.3.1';
20
 
21
  // Settings
22
  var $settings = array();
assets/acf-extended-admin.css CHANGED
@@ -228,7 +228,6 @@ body.post-type-acfe-form.post-new-php #major-publishing-actions{
228
  /*
229
  * ACF Field: Select2 Fix
230
  */
231
-
232
  body:not(.acf-admin-5-3) .select2-container .select2-selection{
233
  border-color: #dfdfdf !important;
234
  border-radius:0 !important;
@@ -244,36 +243,51 @@ body:not(.acf-admin-5-3) .select2-dropdown{
244
  border-radius:0 !important;
245
  }
246
 
247
-
248
- .select2-container .select2-selection--single{
249
- height: 30px !important;
250
  }
251
 
252
- .select2-container .select2-selection--single .select2-selection__arrow{
253
- height:28px !important;
254
  }
255
 
256
  .select2-container .select2-selection--single .select2-selection__rendered{
257
  font-size:14px;
 
 
258
  }
259
 
260
  .select2-container .select2-selection--single .select2-selection__clear{
261
- line-height: 26px;
262
- height: 28px;
 
 
 
 
 
263
  }
264
 
265
  .select2-container .select2-selection--multiple{
266
- height: 30px !important;
267
- min-height: 30px !important;
 
268
  }
269
 
270
  .select2-container--default .select2-selection--multiple .select2-selection__rendered{
271
- padding: 0 4px !important;
272
  }
273
 
274
  .select2-container--default .select2-selection--multiple .select2-selection__choice{
275
- margin-right: 4px !important;
276
- margin-top: 4px !important;
 
 
 
 
 
 
 
 
277
  }
278
 
279
  .select2-container--default.select2-container--focus .select2-selection--multiple{
228
  /*
229
  * ACF Field: Select2 Fix
230
  */
 
231
  body:not(.acf-admin-5-3) .select2-container .select2-selection{
232
  border-color: #dfdfdf !important;
233
  border-radius:0 !important;
243
  border-radius:0 !important;
244
  }
245
 
246
+ body:not(.acf-admin-5-3) .select2-container .select2-search--inline .select2-search__field{
247
+ margin-top:0px !important;
 
248
  }
249
 
250
+ .select2-container .select2-selection--single{
251
+ border-radius:3px !important;
252
  }
253
 
254
  .select2-container .select2-selection--single .select2-selection__rendered{
255
  font-size:14px;
256
+ height:26px;
257
+ line-height: 25px !important;
258
  }
259
 
260
  .select2-container .select2-selection--single .select2-selection__clear{
261
+ line-height:24px;
262
+ height:26px;
263
+ }
264
+
265
+ .select2-container .select2-search--inline .select2-search__field{
266
+ margin-top:3px !important;
267
+ font-size:14px !important;
268
  }
269
 
270
  .select2-container .select2-selection--multiple{
271
+ min-height: 28px !important;
272
+ line-height:1;
273
+ border-radius:3px !important;
274
  }
275
 
276
  .select2-container--default .select2-selection--multiple .select2-selection__rendered{
277
+ padding:0 2px !important;
278
  }
279
 
280
  .select2-container--default .select2-selection--multiple .select2-selection__choice{
281
+ margin-right:2px !important;
282
+ margin-top:2px !important;
283
+ line-height:1.4;
284
+ border-radius:3px !important;
285
+ font-size:14px;
286
+ }
287
+
288
+ .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
289
+ line-height:15px;
290
+ font-size:15px;
291
  }
292
 
293
  .select2-container--default.select2-container--focus .select2-selection--multiple{
includes/fields/field-flexible-content.php CHANGED
@@ -366,7 +366,7 @@ function acfe_flexible_settings($field){
366
  add_action('acf/render_field', 'acfe_flexible_layouts_settings_before', 0);
367
  function acfe_flexible_layouts_settings_before($field){
368
 
369
- if($field['_name'] != 'label' || stripos($field['name'], '[layouts]') === false)
370
  return;
371
 
372
  echo '</li>';
@@ -384,7 +384,7 @@ function acfe_flexible_layouts_settings_before($field){
384
  add_action('acf/render_field', 'acfe_flexible_layouts_settings', 10);
385
  function acfe_flexible_layouts_settings($field){
386
 
387
- if($field['_name'] != 'max' || stripos($field['name'], '[layouts]') === false)
388
  return;
389
 
390
  $layout_prefix = $field['prefix'];
@@ -712,7 +712,7 @@ function acfe_flexible_wrapper($wrapper, $field){
712
  add_filter('acf/fields/flexible_content/no_value_message', 'acfe_flexible_empty_message', 10, 2);
713
  function acfe_flexible_empty_message($message, $field){
714
 
715
- if(!isset($field['acfe_flexible_empty_message']) || empty($field['acfe_flexible_empty_message']))
716
  return $message;
717
 
718
  return $field['acfe_flexible_empty_message'];
@@ -732,7 +732,7 @@ function acfe_flexible_layout_title_prepare($field){
732
  $span_class = false;
733
 
734
  // thumbnail
735
- if(isset($field['acfe_flexible_layouts_thumbnails']) && !empty($field['acfe_flexible_layouts_thumbnails'])){
736
 
737
  $class = $style = array();
738
  $class[] = 'acfe-flexible-layout-thumbnail';
@@ -745,7 +745,7 @@ function acfe_flexible_layout_title_prepare($field){
745
  $thumbnail_found = false;
746
 
747
  $acfe_flexible_thumbnail = false;
748
- if(isset($layout['acfe_flexible_thumbnail']) && !empty($layout['acfe_flexible_thumbnail']))
749
  $acfe_flexible_thumbnail = $layout['acfe_flexible_thumbnail'];
750
 
751
  // Filter: acfe/flexible/layout/thumbnail/name={field:flexible:name}&layout={field:flexible:layout_name}
@@ -801,7 +801,7 @@ function acfe_flexible_layout_title_prepare($field){
801
 
802
  // Category
803
  $category = '';
804
- if(acf_maybe_get($field['acfe_flexible_modal'], 'acfe_flexible_modal_categories') && acf_maybe_get($layout, 'acfe_flexible_category')){
805
 
806
  $category = 'data-acfe-flexible-category="' . $layout['acfe_flexible_category'] . '"';
807
 
@@ -822,7 +822,7 @@ function acfe_flexible_layout_title_ajax($title, $field, $layout, $i){
822
  $title = preg_replace('#<div class="acfe-flexible-layout-thumbnail(.*?)</div>#', '', $title);
823
 
824
  // Title Edition
825
- if(isset($field['acfe_flexible_title_edition']) && !empty($field['acfe_flexible_title_edition'])){
826
 
827
  // Get Layout Title
828
  $acfe_flexible_layout_title = get_sub_field('acfe_flexible_layout_title');
@@ -842,7 +842,7 @@ function acfe_flexible_layout_title_ajax($title, $field, $layout, $i){
842
  add_action('acf/render_field/type=flexible_content', 'acfe_flexible_render_field');
843
  function acfe_flexible_render_field($field){
844
 
845
- if(!isset($field['acfe_flexible_layouts_templates']) || empty($field['acfe_flexible_layouts_templates']) || !isset($field['acfe_flexible_layouts_previews']) || empty($field['acfe_flexible_layouts_previews']) || empty($field['layouts']))
846
  return;
847
 
848
  // Vars
@@ -953,7 +953,7 @@ function acfe_flexible_layout_preview_render($field, $layout){
953
  add_filter('acfe/flexible/render/template', 'acfe_flexible_layout_render_template_setting', 0, 4);
954
  function acfe_flexible_layout_render_template_setting($return, $field, $layout, $is_preview){
955
 
956
- if(isset($layout['acfe_flexible_render_template']) && !empty($layout['acfe_flexible_render_template']))
957
  $return = $layout['acfe_flexible_render_template'];
958
 
959
  return $return;
@@ -963,7 +963,7 @@ function acfe_flexible_layout_render_template_setting($return, $field, $layout,
963
  add_filter('acfe/flexible/render/style', 'acfe_flexible_layout_render_style_setting', 0, 4);
964
  function acfe_flexible_layout_render_style_setting($return, $field, $layout, $is_preview){
965
 
966
- if(isset($layout['acfe_flexible_render_style']) && !empty($layout['acfe_flexible_render_style']))
967
  $return = $layout['acfe_flexible_render_style'];
968
 
969
  return $return;
@@ -973,7 +973,7 @@ function acfe_flexible_layout_render_style_setting($return, $field, $layout, $is
973
  add_filter('acfe/flexible/render/script', 'acfe_flexible_layout_render_script_setting', 0, 4);
974
  function acfe_flexible_layout_render_script_setting($return, $field, $layout, $is_preview){
975
 
976
- if(isset($layout['acfe_flexible_render_script']) && !empty($layout['acfe_flexible_render_script']))
977
  $return = $layout['acfe_flexible_render_script'];
978
 
979
  return $return;
@@ -988,10 +988,10 @@ function acfe_flexible_layout_title_subfield($field){
988
  if(acf_is_screen(array('edit-acf-field-group', 'acf-field-group')) || (isset($typenow) && $typenow === 'acf-field-group'))
989
  return $field;
990
 
991
- if(!isset($field['layouts']) || empty($field['layouts']))
992
  return $field;
993
 
994
- if(!isset($field['acfe_flexible_title_edition']) || empty($field['acfe_flexible_title_edition']))
995
  return $field;
996
 
997
  foreach($field['layouts'] as $layout_key => &$layout){
366
  add_action('acf/render_field', 'acfe_flexible_layouts_settings_before', 0);
367
  function acfe_flexible_layouts_settings_before($field){
368
 
369
+ if($field['_name'] !== 'label' || stripos($field['name'], '[layouts]') === false)
370
  return;
371
 
372
  echo '</li>';
384
  add_action('acf/render_field', 'acfe_flexible_layouts_settings', 10);
385
  function acfe_flexible_layouts_settings($field){
386
 
387
+ if($field['_name'] !== 'max' || stripos($field['name'], '[layouts]') === false)
388
  return;
389
 
390
  $layout_prefix = $field['prefix'];
712
  add_filter('acf/fields/flexible_content/no_value_message', 'acfe_flexible_empty_message', 10, 2);
713
  function acfe_flexible_empty_message($message, $field){
714
 
715
+ if(!acf_maybe_get($field, 'acfe_flexible_empty_message'))
716
  return $message;
717
 
718
  return $field['acfe_flexible_empty_message'];
732
  $span_class = false;
733
 
734
  // thumbnail
735
+ if(acf_maybe_get($field, 'acfe_flexible_layouts_thumbnails')){
736
 
737
  $class = $style = array();
738
  $class[] = 'acfe-flexible-layout-thumbnail';
745
  $thumbnail_found = false;
746
 
747
  $acfe_flexible_thumbnail = false;
748
+ if(acf_maybe_get($layout, 'acfe_flexible_thumbnail'))
749
  $acfe_flexible_thumbnail = $layout['acfe_flexible_thumbnail'];
750
 
751
  // Filter: acfe/flexible/layout/thumbnail/name={field:flexible:name}&layout={field:flexible:layout_name}
801
 
802
  // Category
803
  $category = '';
804
+ if(isset($field['acfe_flexible_modal']['acfe_flexible_modal_categories']) && !empty($field['acfe_flexible_modal']['acfe_flexible_modal_categories']) && acf_maybe_get($layout, 'acfe_flexible_category')){
805
 
806
  $category = 'data-acfe-flexible-category="' . $layout['acfe_flexible_category'] . '"';
807
 
822
  $title = preg_replace('#<div class="acfe-flexible-layout-thumbnail(.*?)</div>#', '', $title);
823
 
824
  // Title Edition
825
+ if(acf_maybe_get($field, 'acfe_flexible_title_edition')){
826
 
827
  // Get Layout Title
828
  $acfe_flexible_layout_title = get_sub_field('acfe_flexible_layout_title');
842
  add_action('acf/render_field/type=flexible_content', 'acfe_flexible_render_field');
843
  function acfe_flexible_render_field($field){
844
 
845
+ if(!acf_maybe_get($field, 'acfe_flexible_layouts_templates') || !acf_maybe_get($field, 'acfe_flexible_layouts_previews') || empty($field['layouts']))
846
  return;
847
 
848
  // Vars
953
  add_filter('acfe/flexible/render/template', 'acfe_flexible_layout_render_template_setting', 0, 4);
954
  function acfe_flexible_layout_render_template_setting($return, $field, $layout, $is_preview){
955
 
956
+ if(acf_maybe_get($layout, 'acfe_flexible_render_template'))
957
  $return = $layout['acfe_flexible_render_template'];
958
 
959
  return $return;
963
  add_filter('acfe/flexible/render/style', 'acfe_flexible_layout_render_style_setting', 0, 4);
964
  function acfe_flexible_layout_render_style_setting($return, $field, $layout, $is_preview){
965
 
966
+ if(acf_maybe_get($layout, 'acfe_flexible_render_style'))
967
  $return = $layout['acfe_flexible_render_style'];
968
 
969
  return $return;
973
  add_filter('acfe/flexible/render/script', 'acfe_flexible_layout_render_script_setting', 0, 4);
974
  function acfe_flexible_layout_render_script_setting($return, $field, $layout, $is_preview){
975
 
976
+ if(acf_maybe_get($layout, 'acfe_flexible_render_script'))
977
  $return = $layout['acfe_flexible_render_script'];
978
 
979
  return $return;
988
  if(acf_is_screen(array('edit-acf-field-group', 'acf-field-group')) || (isset($typenow) && $typenow === 'acf-field-group'))
989
  return $field;
990
 
991
+ if(!acf_maybe_get($field, 'layouts'))
992
  return $field;
993
 
994
+ if(!acf_maybe_get($field, 'acfe_flexible_title_edition'))
995
  return $field;
996
 
997
  foreach($field['layouts'] as $layout_key => &$layout){
includes/modules/form/form-front.php CHANGED
@@ -329,6 +329,9 @@ class acfe_form_front{
329
  }
330
 
331
  $alias = get_sub_field('acfe_form_custom_alias');
 
 
 
332
 
333
  $args = apply_filters('acfe/form/load/' . $action, $args, $args['post_id'], $alias);
334
  $args = apply_filters('acfe/form/load/' . $action . '/form=' . $form_name, $args, $args['post_id'], $alias);
329
  }
330
 
331
  $alias = get_sub_field('acfe_form_custom_alias');
332
+
333
+ if(!empty($alias))
334
+ $args = apply_filters('acfe/form/load/action=' . $alias, $args, $args['post_id']);
335
 
336
  $args = apply_filters('acfe/form/load/' . $action, $args, $args['post_id'], $alias);
337
  $args = apply_filters('acfe/form/load/' . $action . '/form=' . $form_name, $args, $args['post_id'], $alias);
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.3
7
  Requires PHP: 5.6
8
- Stable tag: 0.8.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -21,15 +21,17 @@ All-in-one enhancement suite that improves WordPress & Advanced Custom Fields.
21
  * 14+ New ACF Fields
22
  * 10+ ACF Fields Enhanced
23
  * Bidirectional Fields
24
- * Post Types / Taxonomies Manager
25
- * Options Pages / Block Types Manager
26
- * ACF Forms Manager
27
  * Flexible Content as Page Builder
28
- * Post Meta Overview
29
- * WordPress Admin Enhancementss
 
 
 
 
30
  * ... And many more features
31
 
32
- == 👍 Philosophy ==
33
 
34
  * 100% free
35
  * Seemless integration
@@ -38,7 +40,8 @@ All-in-one enhancement suite that improves WordPress & Advanced Custom Fields.
38
 
39
  == 🛠️ Links ==
40
 
41
- * Join the [ACF community on Slack](https://wpacf.slack.com)
 
42
  * Visit our website [ACF-Extended.com](https://www.acf-extended.com) (WIP)
43
  * Have a question? [Check the FAQ](https://wordpress.org/plugins/acf-extended/#faq)
44
  * Found a bug? [Submit a ticket](https://wordpress.org/support/plugin/acf-extended)
@@ -645,6 +648,13 @@ function my_acfe_modules(){
645
 
646
  == Changelog ==
647
 
 
 
 
 
 
 
 
648
  = 0.8.3 =
649
  * Field: Advanced Link - Added "Allowed Post Types" & "Allowed Taxonomies" setting to filter allowed Post types & Taxonomy terms in the post selection
650
  * Field: Flexible Content - Categories in the Layouts Selection Modal are now sticky, the vertical scrollbar is now applied to layouts (Thanks @Damien C.)
5
  Requires at least: 4.9
6
  Tested up to: 5.3
7
  Requires PHP: 5.6
8
+ Stable tag: 0.8.3.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
21
  * 14+ New ACF Fields
22
  * 10+ ACF Fields Enhanced
23
  * Bidirectional Fields
24
+ * Advanced Fields Validation
 
 
25
  * Flexible Content as Page Builder
26
+ * ACF Forms Manager
27
+ * ACF Options Pages / Block Types Manager
28
+ * ACF & WordPress Meta Overview
29
+ * WordPress Post Types / Taxonomies Manager
30
+ * WordPress Options Manager
31
+ * WordPress Admin Enhancements
32
  * ... And many more features
33
 
34
+ == 🤟 Philosophy ==
35
 
36
  * 100% free
37
  * Seemless integration
40
 
41
  == 🛠️ Links ==
42
 
43
+ * Join the [ACF Slack community](https://join.slack.com/t/wpacf/shared_invite/enQtODc2MjczMzM3NzQ1LTQxNmY2ZGY3OTU2NDkxNTliYmNhMmY1NDMwZGM4NmYxNzgwZTI5MDUzMDFlMGQ5YzcwNDc0ZWM0MDVmODI4NmI)
44
+ * Check the [ACF Extended Trello board](https://trello.com/b/QEgpU7CL/acf-extended)
45
  * Visit our website [ACF-Extended.com](https://www.acf-extended.com) (WIP)
46
  * Have a question? [Check the FAQ](https://wordpress.org/plugins/acf-extended/#faq)
47
  * Found a bug? [Submit a ticket](https://wordpress.org/support/plugin/acf-extended)
648
 
649
  == Changelog ==
650
 
651
+ = 0.8.3.1 =
652
+ * Field: Flexible Content - Fixed PHP `Undefined index: acfe_flexible_modal` notice
653
+ * Fields: Select2 CSS Enhanced - Fixed forced height when in multiple mode
654
+ * Fields: Select2 CSS Enhanced - Global standardization of generic select input & select2 style
655
+ * Module: Dynamic Forms - Added missing hook `filter('acfe/form/load/action=my-action-alias', $args, $post_id);`
656
+ * General: Fixed typo in Readme
657
+
658
  = 0.8.3 =
659
  * Field: Advanced Link - Added "Allowed Post Types" & "Allowed Taxonomies" setting to filter allowed Post types & Taxonomy terms in the post selection
660
  * Field: Flexible Content - Categories in the Layouts Selection Modal are now sticky, the vertical scrollbar is now applied to layouts (Thanks @Damien C.)