9
9
* Plugin Name: Advanced Custom Fields PRO
10
10
* Plugin URI: https://www.advancedcustomfields.com
11
11
* Description: Customize WordPress with powerful, professional and intuitive fields.
12
- * Version: 6.1.5
12
+ * Version: 6.2.0
13
13
* Author: WP Engine
14
14
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
15
15
* Update URI: https://www.advancedcustomfields.com/pro
@@ -34,7 +34,7 @@ class ACF {
34
34
*
35
35
* @var string
36
36
*/
37
- public $ version = '6.1.5 ' ;
37
+ public $ version = '6.2.0 ' ;
38
38
39
39
/**
40
40
* The plugin settings array.
@@ -90,42 +90,44 @@ public function initialize() {
90
90
91
91
// Define settings.
92
92
$ this ->settings = array (
93
- 'name ' => __ ( 'Advanced Custom Fields ' , 'acf ' ),
94
- 'slug ' => dirname ( ACF_BASENAME ),
95
- 'version ' => ACF_VERSION ,
96
- 'basename ' => ACF_BASENAME ,
97
- 'path ' => ACF_PATH ,
98
- 'file ' => __FILE__ ,
99
- 'url ' => plugin_dir_url ( __FILE__ ),
100
- 'show_admin ' => true ,
101
- 'show_updates ' => true ,
102
- 'enable_post_types ' => true ,
103
- 'stripslashes ' => false ,
104
- 'local ' => true ,
105
- 'json ' => true ,
106
- 'save_json ' => '' ,
107
- 'load_json ' => array (),
108
- 'default_language ' => '' ,
109
- 'current_language ' => '' ,
110
- 'capability ' => 'manage_options ' ,
111
- 'uploader ' => 'wp ' ,
112
- 'autoload ' => false ,
113
- 'l10n ' => true ,
114
- 'l10n_textdomain ' => '' ,
115
- 'google_api_key ' => '' ,
116
- 'google_api_client ' => '' ,
117
- 'enqueue_google_maps ' => true ,
118
- 'enqueue_select2 ' => true ,
119
- 'enqueue_datepicker ' => true ,
120
- 'enqueue_datetimepicker ' => true ,
121
- 'select2_version ' => 4 ,
122
- 'row_index_offset ' => 1 ,
123
- 'remove_wp_meta_box ' => true ,
124
- 'rest_api_enabled ' => true ,
125
- 'rest_api_format ' => 'light ' ,
126
- 'rest_api_embed_links ' => true ,
127
- 'preload_blocks ' => true ,
128
- 'enable_shortcode ' => true ,
93
+ 'name ' => __ ( 'Advanced Custom Fields ' , 'acf ' ),
94
+ 'slug ' => dirname ( ACF_BASENAME ),
95
+ 'version ' => ACF_VERSION ,
96
+ 'basename ' => ACF_BASENAME ,
97
+ 'path ' => ACF_PATH ,
98
+ 'file ' => __FILE__ ,
99
+ 'url ' => plugin_dir_url ( __FILE__ ),
100
+ 'show_admin ' => true ,
101
+ 'show_updates ' => true ,
102
+ 'enable_post_types ' => true ,
103
+ 'enable_options_pages_ui ' => true ,
104
+ 'stripslashes ' => false ,
105
+ 'local ' => true ,
106
+ 'json ' => true ,
107
+ 'save_json ' => '' ,
108
+ 'load_json ' => array (),
109
+ 'default_language ' => '' ,
110
+ 'current_language ' => '' ,
111
+ 'capability ' => 'manage_options ' ,
112
+ 'uploader ' => 'wp ' ,
113
+ 'autoload ' => false ,
114
+ 'l10n ' => true ,
115
+ 'l10n_textdomain ' => '' ,
116
+ 'google_api_key ' => '' ,
117
+ 'google_api_client ' => '' ,
118
+ 'enqueue_google_maps ' => true ,
119
+ 'enqueue_select2 ' => true ,
120
+ 'enqueue_datepicker ' => true ,
121
+ 'enqueue_datetimepicker ' => true ,
122
+ 'select2_version ' => 4 ,
123
+ 'row_index_offset ' => 1 ,
124
+ 'remove_wp_meta_box ' => true ,
125
+ 'rest_api_enabled ' => true ,
126
+ 'rest_api_format ' => 'light ' ,
127
+ 'rest_api_embed_links ' => true ,
128
+ 'preload_blocks ' => true ,
129
+ 'enable_shortcode ' => true ,
130
+ 'enable_bidirection ' => true ,
129
131
);
130
132
131
133
// Include utility functions.
@@ -147,6 +149,7 @@ public function initialize() {
147
149
acf_include ( 'includes/acf-helper-functions.php ' );
148
150
acf_include ( 'includes/acf-hook-functions.php ' );
149
151
acf_include ( 'includes/acf-field-functions.php ' );
152
+ acf_include ( 'includes/acf-bidirectional-functions.php ' );
150
153
acf_include ( 'includes/acf-internal-post-type-functions.php ' );
151
154
acf_include ( 'includes/acf-post-type-functions.php ' );
152
155
acf_include ( 'includes/acf-taxonomy-functions.php ' );
@@ -270,10 +273,13 @@ public function init() {
270
273
271
274
// Add post types and taxonomies.
272
275
if ( acf_get_setting ( 'enable_post_types ' ) ) {
273
- acf_include ( 'includes/post-types/class-acf-post-type.php ' );
274
276
acf_include ( 'includes/post-types/class-acf-taxonomy.php ' );
277
+ acf_include ( 'includes/post-types/class-acf-post-type.php ' );
275
278
}
276
279
280
+ // Add other ACF internal post types.
281
+ do_action ( 'acf/init_internal_post_types ' );
282
+
277
283
// Include fields.
278
284
acf_include ( 'includes/fields/class-acf-field-text.php ' );
279
285
acf_include ( 'includes/fields/class-acf-field-textarea.php ' );
0 commit comments