Skip to content

Commit bf251ec

Browse files
authored
Merge pull request #29 from visual-framework/plugins-update-052025
plugins update 052025
2 parents 177e016 + dbf5ac1 commit bf251ec

559 files changed

Lines changed: 50276 additions & 28957 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Advanced Custom Fields
2+
3+
Welcome to the official Advanced Custom Fields repository on GitHub. ACF is a WordPress plugin used to take full control of your edit screens & custom field data.
4+
5+
## Documentation
6+
7+
Do you need help getting started with ACF, or do you have questions about one of the ACF features? You can [search through our documentation here](https://www.advancedcustomfields.com/resources/). If you don't find the answers you're looking for, you can start a new forum thread in the [support forum](https://support.advancedcustomfields.com/) or contact our [support team](https://www.advancedcustomfields.com/contact/)
8+
9+
If you've got feedback or a feature suggestion for ACF, please use our [feedback board](https://www.advancedcustomfields.com/feedback/)
10+
11+
## Support
12+
13+
This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core issues only.
14+
Support can take place in the appropriate channels:
15+
16+
* Community forum
17+
* Email based ticket system
18+
19+
These channels can be accessed from our [support website](https://support.advancedcustomfields.com/).
20+
21+
## Contributing
22+
23+
If you have a patch, or stumbled upon an issue with ACF core, you can contribute this back to the code. Please create a new github issue with as much information as possible, and a PR if appropriate.
24+
25+
## Translations
26+
27+
If you're looking to translate ACF, you can submit new PRO translations via a PR on this repo. Any strings from the free version are imported from [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/advanced-custom-fields/stable/). For more information, please view our [translation guide](https://www.advancedcustomfields.com/resources/how-to-help-translate-acf-into-other-languages/)

advanced-custom-fields-pro/acf.php

Lines changed: 30 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
/**
33
* Advanced Custom Fields PRO
44
*
5-
* @package ACF
6-
* @author WP Engine
5+
* @package ACF
6+
* @author WP Engine
77
*
88
* @wordpress-plugin
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.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
@@ -36,7 +36,7 @@ class ACF {
3636
*
3737
* @var string
3838
*/
39-
public $version = '6.3.11';
39+
public $version = '6.4.1';
4040

4141
/**
4242
* The plugin settings array.
@@ -91,7 +91,7 @@ public function initialize() {
9191

9292
// Define settings.
9393
$this->settings = array(
94-
'name' => __( 'Advanced Custom Fields', 'acf' ),
94+
'name' => 'Advanced Custom Fields',
9595
'slug' => dirname( ACF_BASENAME ),
9696
'version' => ACF_VERSION,
9797
'basename' => ACF_BASENAME,
@@ -133,6 +133,9 @@ public function initialize() {
133133
'enable_meta_box_cb_edit' => true,
134134
);
135135

136+
// Include autoloader.
137+
include_once __DIR__ . '/vendor/autoload.php';
138+
136139
// Include utility functions.
137140
include_once ACF_PATH . 'includes/acf-utility-functions.php';
138141

@@ -144,13 +147,22 @@ public function initialize() {
144147
// Include classes.
145148
acf_include( 'includes/class-acf-data.php' );
146149
acf_include( 'includes/class-acf-internal-post-type.php' );
147-
acf_include( 'includes/class-acf-site-health.php' );
148150
acf_include( 'includes/fields/class-acf-field.php' );
149151
acf_include( 'includes/locations/abstract-acf-legacy-location.php' );
150152
acf_include( 'includes/locations/abstract-acf-location.php' );
151153

154+
// Initialise autoloaded classes.
155+
new ACF\Site_Health\Site_Health();
156+
152157
// Include functions.
153158
acf_include( 'includes/acf-helper-functions.php' );
159+
160+
acf_new_instance( 'ACF\Meta\Comment' );
161+
acf_new_instance( 'ACF\Meta\Post' );
162+
acf_new_instance( 'ACF\Meta\Term' );
163+
acf_new_instance( 'ACF\Meta\User' );
164+
acf_new_instance( 'ACF\Meta\Option' );
165+
154166
acf_include( 'includes/acf-hook-functions.php' );
155167
acf_include( 'includes/acf-field-functions.php' );
156168
acf_include( 'includes/acf-bidirectional-functions.php' );
@@ -228,11 +240,13 @@ public function initialize() {
228240
// Include legacy.
229241
acf_include( 'includes/legacy/legacy-locations.php' );
230242

231-
// Include updater.
232-
acf_include( 'includes/Updater/Updater.php' );
243+
// Include updater if included with this build.
244+
acf_include( 'includes/Updater/init.php' );
233245

234-
// Include PRO.
235-
acf_include( 'pro/acf-pro.php' );
246+
// Include PRO if included with this build.
247+
if ( ! defined( 'ACF_PREVENT_PRO_LOAD' ) || ( defined( 'ACF_PREVENT_PRO_LOAD' ) && ! ACF_PREVENT_PRO_LOAD ) ) {
248+
acf_include( 'pro/acf-pro.php' );
249+
}
236250

237251
if ( is_admin() && function_exists( 'acf_is_pro' ) && ! acf_is_pro() ) {
238252
acf_include( 'includes/admin/admin-options-pages-preview.php' );
@@ -273,6 +287,9 @@ public function init() {
273287
// Load textdomain file.
274288
acf_load_textdomain();
275289

290+
// Make plugin name translatable.
291+
acf_update_setting( 'name', __( 'Advanced Custom Fields', 'acf' ) );
292+
276293
// Include 3rd party compatiblity.
277294
acf_include( 'includes/third-party.php' );
278295

@@ -395,24 +412,11 @@ public function init() {
395412
*/
396413
do_action( 'acf/include_taxonomies', ACF_MAJOR_VERSION );
397414

398-
// If we're on 6.5 or newer, load block bindings. This will move to an autoloader in 6.4.
399-
if ( version_compare( get_bloginfo( 'version' ), '6.5-beta1', '>=' ) ) {
400-
acf_include( 'includes/Blocks/Bindings.php' );
415+
// If we're on 6.5 or newer, load block bindings.
416+
if ( version_compare( get_bloginfo( 'version' ), '6.5', '>=' ) ) {
401417
new ACF\Blocks\Bindings();
402418
}
403419

404-
// If we're ACF free, register the updater.
405-
if ( function_exists( 'acf_is_pro' ) && ! acf_is_pro() ) {
406-
acf_register_plugin_update(
407-
array(
408-
'id' => 'acf',
409-
'slug' => acf_get_setting( 'slug' ),
410-
'basename' => acf_get_setting( 'basename' ),
411-
'version' => acf_get_setting( 'version' ),
412-
)
413-
);
414-
}
415-
416420
/**
417421
* Fires after ACF is completely "initialized".
418422
*
@@ -799,42 +803,6 @@ public function acf_plugin_activated() {
799803
}
800804
}
801805

802-
if ( ! class_exists( 'ACF_Updates' ) ) {
803-
/**
804-
* The main function responsible for returning the acf_updates singleton.
805-
* Use this function like you would a global variable, except without needing to declare the global.
806-
*
807-
* Example: <?php $acf_updates = acf_updates(); ?>
808-
*
809-
* @since 5.5.12
810-
*
811-
* @return ACF\Updater The singleton instance of Updater.
812-
*/
813-
function acf_updates() {
814-
global $acf_updates;
815-
if ( ! isset( $acf_updates ) ) {
816-
$acf_updates = new ACF\Updater();
817-
}
818-
return $acf_updates;
819-
}
820-
821-
/**
822-
* Alias of acf_updates()->add_plugin().
823-
*
824-
* @since 5.5.10
825-
*
826-
* @param array $plugin Plugin data array.
827-
*/
828-
function acf_register_plugin_update( $plugin ) {
829-
acf_updates()->add_plugin( $plugin );
830-
}
831-
832-
/**
833-
* Register a dummy ACF_Updates class for back compat.
834-
*/
835-
class ACF_Updates {} //phpcs:ignore -- Back compat.
836-
}
837-
838806
/**
839807
* An ACF specific getter to replace `home_url` in our license checks to ensure we can avoid third party filters.
840808
*

advanced-custom-fields-pro/assets/build/css/acf-global.min.css

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

advanced-custom-fields-pro/assets/build/css/acf-input.min.css

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

advanced-custom-fields-pro/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.

advanced-custom-fields-pro/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.

advanced-custom-fields-pro/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.

advanced-custom-fields-pro/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)