Version Description
- Field Group: Latest Post Type 'All' location fix was too sensitive. The location now works as expected
- Module: Dynamic Post Types, Taxonomies & Block Types modules now set the 'slug' as disabled once it's saved (to avoid duplication). A more flexible solution will be introduced later (WIP)
Download this release
Release Info
Developer | hwk-fr |
Plugin | Advanced Custom Fields: Extended |
Version | 0.6.7.2 |
Comparing to | |
See all releases |
Code changes from version 0.6.7 to 0.6.7.2
- acf-extended.php +1 -1
- includes/locations/post-type-all.php +2 -2
- includes/modules/dynamic-block-type.php +16 -0
- includes/modules/dynamic-post-type.php +16 -0
- includes/modules/dynamic-taxonomy.php +16 -0
- readme.txt +6 -2
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.6.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.6.7.2
|
6 |
* Author: ACF Extended
|
7 |
* Author URI: https://www.acf-extended.com
|
8 |
* Text Domain: acfe
|
includes/locations/post-type-all.php
CHANGED
@@ -25,12 +25,12 @@ function acfe_location_post_type_all_match($match, $rule, $options){
|
|
25 |
|
26 |
if($rule['operator'] == "=="){
|
27 |
|
|
|
|
|
28 |
$post_types = acf_get_post_types();
|
29 |
if(isset($options['post_type']) && !empty($options['post_type']) && in_array($options['post_type'], $post_types))
|
30 |
$match = true;
|
31 |
|
32 |
-
$match = false;
|
33 |
-
|
34 |
}
|
35 |
|
36 |
elseif($rule['operator'] == "!="){
|
25 |
|
26 |
if($rule['operator'] == "=="){
|
27 |
|
28 |
+
$match = false;
|
29 |
+
|
30 |
$post_types = acf_get_post_types();
|
31 |
if(isset($options['post_type']) && !empty($options['post_type']) && in_array($options['post_type'], $post_types))
|
32 |
$match = true;
|
33 |
|
|
|
|
|
34 |
}
|
35 |
|
36 |
elseif($rule['operator'] == "!="){
|
includes/modules/dynamic-block-type.php
CHANGED
@@ -447,6 +447,22 @@ function acfe_dbt_admin_columns_html($column, $post_id){
|
|
447 |
|
448 |
}
|
449 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
/**
|
451 |
* Dynamic Block Type: Local Field Group
|
452 |
*/
|
447 |
|
448 |
}
|
449 |
|
450 |
+
/**
|
451 |
+
* Admin Disable Name
|
452 |
+
*/
|
453 |
+
add_filter('acf/prepare_field/key=field_acfe_dbt_name', 'acfe_dbt_admin_disable_name');
|
454 |
+
function acfe_dbt_admin_disable_name($field){
|
455 |
+
|
456 |
+
global $pagenow;
|
457 |
+
if($pagenow != 'post.php')
|
458 |
+
return $field;
|
459 |
+
|
460 |
+
$field['disabled'] = true;
|
461 |
+
|
462 |
+
return $field;
|
463 |
+
|
464 |
+
}
|
465 |
+
|
466 |
/**
|
467 |
* Dynamic Block Type: Local Field Group
|
468 |
*/
|
includes/modules/dynamic-post-type.php
CHANGED
@@ -560,6 +560,22 @@ function acfe_dpt_admin_footer(){
|
|
560 |
|
561 |
}
|
562 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
563 |
/**
|
564 |
* Admin Validate Name
|
565 |
*/
|
560 |
|
561 |
}
|
562 |
|
563 |
+
/**
|
564 |
+
* Admin Disable Name
|
565 |
+
*/
|
566 |
+
add_filter('acf/prepare_field/name=acfe_dpt_name', 'acfe_dpt_admin_disable_name');
|
567 |
+
function acfe_dpt_admin_disable_name($field){
|
568 |
+
|
569 |
+
global $pagenow;
|
570 |
+
if($pagenow != 'post.php')
|
571 |
+
return $field;
|
572 |
+
|
573 |
+
$field['disabled'] = true;
|
574 |
+
|
575 |
+
return $field;
|
576 |
+
|
577 |
+
}
|
578 |
+
|
579 |
/**
|
580 |
* Admin Validate Name
|
581 |
*/
|
includes/modules/dynamic-taxonomy.php
CHANGED
@@ -472,6 +472,22 @@ function acfe_dt_admin_columns_html($column, $post_id){
|
|
472 |
|
473 |
}
|
474 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
475 |
/**
|
476 |
* Admin Validate Name
|
477 |
*/
|
472 |
|
473 |
}
|
474 |
|
475 |
+
/**
|
476 |
+
* Admin Disable Name
|
477 |
+
*/
|
478 |
+
add_filter('acf/prepare_field/name=acfe_dt_name', 'acfe_dt_admin_disable_name');
|
479 |
+
function acfe_dt_admin_disable_name($field){
|
480 |
+
|
481 |
+
global $pagenow;
|
482 |
+
if($pagenow != 'post.php')
|
483 |
+
return $field;
|
484 |
+
|
485 |
+
$field['disabled'] = true;
|
486 |
+
|
487 |
+
return $field;
|
488 |
+
|
489 |
+
}
|
490 |
+
|
491 |
/**
|
492 |
* Admin Validate Name
|
493 |
*/
|
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.6.7
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -244,10 +244,14 @@ Usage example:
|
|
244 |
|
245 |
== Changelog ==
|
246 |
|
|
|
|
|
|
|
|
|
247 |
= 0.6.7 =
|
248 |
* Module: Added Block Types Module. You can now add, edit and delete Block Types in the ACF > Block Types UI
|
249 |
* Module: Added Options Pages Module. You can now add, edit and delete Options Pages in the ACF > Options UI
|
250 |
-
* Field Group: Fixed Post Type 'All' location that could
|
251 |
|
252 |
= 0.6.5 =
|
253 |
* Field: Added 'Featured Thumbnail' setting on image fields. When selected, the field will update the post featured thumbnail
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 0.6.7.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
244 |
|
245 |
== Changelog ==
|
246 |
|
247 |
+
= 0.6.7.2 =
|
248 |
+
* Field Group: Latest Post Type 'All' location fix was too sensitive. The location now works as expected
|
249 |
+
* Module: Dynamic Post Types, Taxonomies & Block Types modules now set the 'slug' as disabled once it's saved (to avoid duplication). A more flexible solution will be introduced later (WIP)
|
250 |
+
|
251 |
= 0.6.7 =
|
252 |
* Module: Added Block Types Module. You can now add, edit and delete Block Types in the ACF > Block Types UI
|
253 |
* Module: Added Options Pages Module. You can now add, edit and delete Options Pages in the ACF > Options UI
|
254 |
+
* Field Group: Fixed Post Type 'All' location that could render field groups on internal/excluded post types
|
255 |
|
256 |
= 0.6.5 =
|
257 |
* Field: Added 'Featured Thumbnail' setting on image fields. When selected, the field will update the post featured thumbnail
|