Skip to content

Commit c8cff1b

Browse files
authored
Ensure all fields are in the field select modal (#20)
1 parent ae2cd64 commit c8cff1b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

assets/src/js/_browse-fields-modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@
189189
this.$el.find( '.field-type-image' ).hide();
190190
}
191191

192-
const isPro = acf.get( 'is_pro' );
193-
const isActive = acf.get( 'isLicenseActive' );
192+
const isPro = true;
193+
const isActive = true;
194194
const $upgateToProButton = this.$el.find( '.acf-btn-pro' );
195195
const $upgradeToUnlockButton = this.$el.find(
196196
'.field-type-upgrade-to-unlock'

includes/assets.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ public function register_scripts() {
110110
$version = acf_get_setting( 'version' );
111111

112112
// Register scripts.
113-
wp_register_script( 'acf-pro-input', acf_get_url( "assets/build/js/pro/acf-pro-input{$min}.js" ), array( 'acf-input' ), $version, true );
114-
wp_register_script( 'acf-pro-field-group', acf_get_url( "assets/build/js/pro/acf-pro-field-group{$min}.js" ), array( 'acf-field-group' ), $version, true );
115-
wp_register_script( 'acf-pro-ui-options-page', acf_get_url( "assets/build/js/pro/acf-pro-ui-options-page{$min}.js" ), array( 'acf-input' ), $version, true );
113+
wp_register_script( 'acf-pro-input', acf_get_url( 'assets/build/js/pro/acf-pro-input' . $suffix . '.js' ), array( 'acf-input' ), $version, true );
114+
wp_register_script( 'acf-pro-field-group', acf_get_url( 'assets/build/js/pro/acf-pro-field-group' . $suffix . '.js' ), array( 'acf-field-group' ), $version, true );
115+
wp_register_script( 'acf-pro-ui-options-page', acf_get_url( 'assets/build/js/pro/acf-pro-ui-options-page' . $suffix . '.js' ), array( 'acf-input' ), $version, true );
116116

117117
// Register styles.
118118
wp_register_style( 'acf-pro-input', acf_get_url( 'assets/build/css/pro/acf-pro-input.css' ), array( 'acf-input' ), $version );

includes/fields.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ function acf_get_pro_field_types() {
419419
'description' => __( 'This allows you to select and display existing fields. It does not duplicate any fields in the database, but loads and displays the selected fields at run-time. The Clone field can either replace itself with the selected fields or display the selected fields as a group of subfields.', 'secure-custom-fields' ),
420420
'tutorial_url' => 'https://www.advancedcustomfields.com/resources/how-to-use-the-clone-field/',
421421
'category' => 'layout',
422-
'pro' => true,
422+
'pro' => false,
423423
),
424424
'flexible_content' => array(
425425
'name' => 'flexible_content',
@@ -429,7 +429,7 @@ function acf_get_pro_field_types() {
429429
'description' => __( 'This provides a simple, structured, layout-based editor. The Flexible Content field allows you to define, create and manage content with total control by using layouts and subfields to design the available blocks.', 'secure-custom-fields' ),
430430
'tutorial_url' => 'https://www.advancedcustomfields.com/resources/building-layouts-with-the-flexible-content-field-in-a-theme/',
431431
'category' => 'layout',
432-
'pro' => true,
432+
'pro' => false,
433433
),
434434
'gallery' => array(
435435
'name' => 'gallery',
@@ -439,7 +439,7 @@ function acf_get_pro_field_types() {
439439
'description' => __( 'This provides an interactive interface for managing a collection of attachments. Most settings are similar to the Image field type. Additional settings allow you to specify where new attachments are added in the gallery and the minimum/maximum number of attachments allowed.', 'secure-custom-fields' ),
440440
'tutorial_url' => 'https://www.advancedcustomfields.com/resources/how-to-use-the-gallery-field/',
441441
'category' => 'content',
442-
'pro' => true,
442+
'pro' => false,
443443
),
444444
'repeater' => array(
445445
'name' => 'repeater',
@@ -449,7 +449,7 @@ function acf_get_pro_field_types() {
449449
'description' => __( 'This provides a solution for repeating content such as slides, team members, and call-to-action tiles, by acting as a parent to a set of subfields which can be repeated again and again.', 'secure-custom-fields' ),
450450
'tutorial_url' => 'https://www.advancedcustomfields.com/resources/repeater/how-to-use-the-repeater-field/',
451451
'category' => 'layout',
452-
'pro' => true,
452+
'pro' => false,
453453
),
454454
);
455455
}

0 commit comments

Comments
 (0)