Skip to content

Commit 2be073e

Browse files
committed
v6.4.0.1
Signed-off-by: mavrokordato <info@wordpress-premium.net>
1 parent 40210c9 commit 2be073e

File tree

202 files changed

+37111
-18675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+37111
-18675
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
.op
3+
diff.txt

README.md

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Advanced Custom Fields PRO
22

3-
![GitHub followers](https://img.shields.io/github/followers/wordpress-premium?style=flat&color=lightblue) ![GitHub Repo stars](https://img.shields.io/github/stars/wordpress-premium/advanced-custom-fields-pro?style=flat&color=orange) ![GitHub forks](https://img.shields.io/github/forks/wordpress-premium/advanced-custom-fields-pro?style=flat) ![GitHub last commit](https://img.shields.io/github/last-commit/wordpress-premium/advanced-custom-fields-pro)
3+
![GitLab Release](https://img.shields.io/gitlab/v/release/wordpress-premium%2Fadvanced-custom-fields-pro) ![GitHub followers](https://img.shields.io/github/followers/wordpress-premium?style=flat&color=lightblue) ![GitHub Repo stars](https://img.shields.io/github/stars/wordpress-premium/advanced-custom-fields-pro?style=flat&color=orange) ![GitHub forks](https://img.shields.io/github/forks/wordpress-premium/advanced-custom-fields-pro?style=flat) ![GitHub last commit](https://img.shields.io/github/last-commit/wordpress-premium/advanced-custom-fields-pro)
44

5-
[**Advanced Custom Fields PRO**](https://www.advancedcustomfields.com/) (or **ACF**)is a powerful plugin for WordPress that allows you to customize your website with professional and intuitive fields. ACF PRO provides tools to take full control of your WordPress edit screens, custom field data, and more, making it a favorite among developers.
5+
[**Advanced Custom Fields PRO**](https://www.advancedcustomfields.com/) (or **ACF**) is a powerful plugin for WordPress that allows you to customize your website with professional and intuitive fields. ACF PRO provides tools to take full control of your WordPress edit screens, custom field data, and more, making it a favorite among developers.
66

77
## Usage
88

@@ -32,30 +32,11 @@ Here are the last three updates from the Advanced Custom Fields PRO changelog to
3232

3333
## Changelog
3434

35-
### 6.3.12
35+
### 6.4.0.1
3636

37-
**Release Date:** 21st January 2025
37+
**Release Date:** April 8th, 2025
3838

39-
* **Enhancement:** Error messages that occur when field validation fails due to an insufficient security nonce now have additional context.
40-
* **Fix:** Duplicated ACF blocks no longer lose their field values after the initial save when block preloading is enabled.
41-
* **Fix:** ACF Blocks containing complex field types now behave correctly when React StrictMode is enabled.
42-
43-
### 6.3.11
44-
45-
**Release Date:** 12th November 2024
46-
47-
* **Enhancement:** Field Group keys are now copyable on click.
48-
* **Fix:** Repeater tables with fields hidden by conditional logic now render correctly.
49-
* **Fix:** ACF Blocks now behave correctly in React StrictMode.
50-
* **Fix:** Edit mode is no longer available to ACF Blocks with a WordPress Block API version of 3 as field editing is not supported in the iframe.
51-
52-
### 6.3.10.2
53-
54-
**Release Date:** 29th October 2024
55-
56-
*(Free Only Release)*
57-
58-
* **Fix:** ACF Free no longer causes a fatal error when any unsupported legacy ACF addons are active.
39+
* **Fix:** Calling `acf_get_reference()` with an invalid field name no longer causes a fatal error
5940

6041
---
6142

acf.php

Lines changed: 27 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* Plugin Name: Advanced Custom Fields PRO
1010
* Plugin URI: https://www.advancedcustomfields.com
1111
* Description: Customize WordPress with powerful, professional and intuitive fields.
12-
* Version: 6.3.11
12+
* Version: 6.4.0.1
1313
* Author: WP Engine
1414
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
15-
* Update URI: false
15+
* Update URI: https://www.advancedcustomfields.com/pro
1616
* Text Domain: acf
1717
* Domain Path: /lang
1818
* Requires PHP: 7.4
@@ -58,7 +58,7 @@ class ACF {
5858
*
5959
* @var string
6060
*/
61-
public $version = '6.3.11';
61+
public $version = '6.4.0.1';
6262

6363
/**
6464
* The plugin settings array.
@@ -113,7 +113,7 @@ public function initialize() {
113113

114114
// Define settings.
115115
$this->settings = array(
116-
'name' => __( 'Advanced Custom Fields', 'acf' ),
116+
'name' => 'Advanced Custom Fields',
117117
'slug' => dirname( ACF_BASENAME ),
118118
'version' => ACF_VERSION,
119119
'basename' => ACF_BASENAME,
@@ -155,6 +155,9 @@ public function initialize() {
155155
'enable_meta_box_cb_edit' => true,
156156
);
157157

158+
// Include autoloader.
159+
include_once __DIR__ . '/vendor/autoload.php';
160+
158161
// Include utility functions.
159162
include_once ACF_PATH . 'includes/acf-utility-functions.php';
160163

@@ -166,13 +169,21 @@ public function initialize() {
166169
// Include classes.
167170
acf_include( 'includes/class-acf-data.php' );
168171
acf_include( 'includes/class-acf-internal-post-type.php' );
169-
acf_include( 'includes/class-acf-site-health.php' );
170172
acf_include( 'includes/fields/class-acf-field.php' );
171173
acf_include( 'includes/locations/abstract-acf-legacy-location.php' );
172174
acf_include( 'includes/locations/abstract-acf-location.php' );
173175

176+
// Initialise autoloaded classes.
177+
new ACF\Site_Health\Site_Health();
178+
174179
// Include functions.
175180
acf_include( 'includes/acf-helper-functions.php' );
181+
182+
acf_new_instance( 'ACF\Meta\Comment' );
183+
acf_new_instance( 'ACF\Meta\Post' );
184+
acf_new_instance( 'ACF\Meta\Term' );
185+
acf_new_instance( 'ACF\Meta\User' );
186+
176187
acf_include( 'includes/acf-hook-functions.php' );
177188
acf_include( 'includes/acf-field-functions.php' );
178189
acf_include( 'includes/acf-bidirectional-functions.php' );
@@ -250,11 +261,13 @@ public function initialize() {
250261
// Include legacy.
251262
acf_include( 'includes/legacy/legacy-locations.php' );
252263

253-
// Include updater.
254-
acf_include( 'includes/Updater/Updater.php' );
264+
// Include updater if included with this build.
265+
acf_include( 'includes/Updater/init.php' );
255266

256-
// Include PRO.
257-
acf_include( 'pro/acf-pro.php' );
267+
// Include PRO if included with this build.
268+
if ( ! defined( 'ACF_PREVENT_PRO_LOAD' ) || ( defined( 'ACF_PREVENT_PRO_LOAD' ) && ! ACF_PREVENT_PRO_LOAD ) ) {
269+
acf_include( 'pro/acf-pro.php' );
270+
}
258271

259272
if ( is_admin() && function_exists( 'acf_is_pro' ) && ! acf_is_pro() ) {
260273
acf_include( 'includes/admin/admin-options-pages-preview.php' );
@@ -295,6 +308,9 @@ public function init() {
295308
// Load textdomain file.
296309
acf_load_textdomain();
297310

311+
// Make plugin name translatable.
312+
acf_update_setting( 'name', __( 'Advanced Custom Fields', 'acf' ) );
313+
298314
// Include 3rd party compatiblity.
299315
acf_include( 'includes/third-party.php' );
300316

@@ -417,24 +433,11 @@ public function init() {
417433
*/
418434
do_action( 'acf/include_taxonomies', ACF_MAJOR_VERSION );
419435

420-
// If we're on 6.5 or newer, load block bindings. This will move to an autoloader in 6.4.
421-
if ( version_compare( get_bloginfo( 'version' ), '6.5-beta1', '>=' ) ) {
422-
acf_include( 'includes/Blocks/Bindings.php' );
436+
// If we're on 6.5 or newer, load block bindings.
437+
if ( version_compare( get_bloginfo( 'version' ), '6.5', '>=' ) ) {
423438
new ACF\Blocks\Bindings();
424439
}
425440

426-
// If we're ACF free, register the updater.
427-
if ( function_exists( 'acf_is_pro' ) && ! acf_is_pro() ) {
428-
acf_register_plugin_update(
429-
array(
430-
'id' => 'acf',
431-
'slug' => acf_get_setting( 'slug' ),
432-
'basename' => acf_get_setting( 'basename' ),
433-
'version' => acf_get_setting( 'version' ),
434-
)
435-
);
436-
}
437-
438441
/**
439442
* Fires after ACF is completely "initialized".
440443
*
@@ -821,42 +824,6 @@ public function acf_plugin_activated() {
821824
}
822825
}
823826

824-
if ( ! class_exists( 'ACF_Updates' ) ) {
825-
/**
826-
* The main function responsible for returning the acf_updates singleton.
827-
* Use this function like you would a global variable, except without needing to declare the global.
828-
*
829-
* Example: <?php $acf_updates = acf_updates(); ?>
830-
*
831-
* @since 5.5.12
832-
*
833-
* @return ACF\Updater The singleton instance of Updater.
834-
*/
835-
function acf_updates() {
836-
global $acf_updates;
837-
if ( ! isset( $acf_updates ) ) {
838-
$acf_updates = new ACF\Updater();
839-
}
840-
return $acf_updates;
841-
}
842-
843-
/**
844-
* Alias of acf_updates()->add_plugin().
845-
*
846-
* @since 5.5.10
847-
*
848-
* @param array $plugin Plugin data array.
849-
*/
850-
function acf_register_plugin_update( $plugin ) {
851-
acf_updates()->add_plugin( $plugin );
852-
}
853-
854-
/**
855-
* Register a dummy ACF_Updates class for back compat.
856-
*/
857-
class ACF_Updates {} //phpcs:ignore -- Back compat.
858-
}
859-
860827
/**
861828
* An ACF specific getter to replace `home_url` in our license checks to ensure we can avoid third party filters.
862829
*

assets/build/js/acf-field-group.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/js/acf-input.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/js/acf.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/js/pro/acf-pro-blocks.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)