Skip to content

Commit

Permalink
Updates to 6.2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ACF committed Sep 9, 2023
1 parent 096ae70 commit 81dca1b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: Advanced Custom Fields PRO
* Plugin URI: https://www.advancedcustomfields.com
* Description: Customize WordPress with powerful, professional and intuitive fields.
* Version: 6.2.1
* Version: 6.2.1.1
* Author: WP Engine
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
* Update URI: https://www.advancedcustomfields.com/pro
Expand All @@ -36,7 +36,7 @@ class ACF {
*
* @var string
*/
public $version = '6.2.1';
public $version = '6.2.1.1';

/**
* The plugin settings array.
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/post-types/admin-field-group.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ public function admin_enqueue_scripts() {
)
);

if ( acf_is_pro() ) {
if ( acf_is_pro() && acf_get_setting( 'enable_options_pages_ui' ) ) {
acf_localize_data(
array(
'acfParentPageChoices' => ACF_Admin_UI_Options_Page::get_parent_page_choices(),
)
);
);
}

acf_localize_data(
Expand Down
4 changes: 3 additions & 1 deletion pro/locations/class-acf-location-options-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public function get_values( $rule ) {
$choices[''] = __( 'Select options page...', 'acf' );
}

$choices['add_new_options_page'] = __( 'Add New Options Page', 'acf' );
if ( acf_get_setting( 'enable_options_pages_ui' ) ) {
$choices['add_new_options_page'] = __( 'Add New Options Page', 'acf' );
}

// Return choices.
return $choices;
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: acf, fields, custom fields, meta, repeater
Requires at least: 5.8
Tested up to: 6.3
Requires PHP: 7.0
Stable tag: 6.2.1
Stable tag: 6.2.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -92,6 +92,11 @@ From your WordPress dashboard

== Changelog ==

= 6.2.1.1 =
*Release Date 8th September 2023*

* Fix - Editing a field group no longer generates an error when UI options pages are disabled

= 6.2.1 =
*Release Date 7th September 2023*

Expand Down

0 comments on commit 81dca1b

Please sign in to comment.