Skip to content

Commit 6a37b4e

Browse files
authored
Prevent access editor UI setting to enable on field type swith (#182)
1 parent d86e3ba commit 6a37b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/fields/class-acf-field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public function render_bindings_setting( $field ) {
347347

348348
// This field setting has a unique behaviour. If the value isn't defined on the field object, it defaults to true, but for new fields, it defaults to off.
349349
if ( ! isset( $field['allow_in_bindings'] ) ) {
350-
if ( empty( $field['ID'] ) ) {
350+
if ( empty( $field['ID'] ) || doing_action( 'wp_ajax_acf/field_group/render_field_settings' ) ) {
351351
$field['allow_in_bindings'] = false;
352352
} else {
353353
$field['allow_in_bindings'] = true;

0 commit comments

Comments
 (0)