@@ -91,7 +91,7 @@ public function initialize() {
91
91
92
92
// Define settings.
93
93
$ this ->settings = array (
94
- 'name ' => __ ( 'Secure Custom Fields ' , ' secure-custom-fields ' ),
94
+ 'name ' => 'Secure Custom Fields ' , // Will be updated in the init hook to i18n string.
95
95
'slug ' => dirname ( ACF_BASENAME ),
96
96
'version ' => ACF_VERSION ,
97
97
'basename ' => ACF_BASENAME ,
@@ -207,18 +207,6 @@ public function initialize() {
207
207
acf_include ( 'includes/ajax/class-acf-ajax-query-users.php ' );
208
208
acf_include ( 'includes/ajax/class-acf-ajax-local-json-diff.php ' );
209
209
210
- // Include forms.
211
- acf_include ( 'includes/forms/form-attachment.php ' );
212
- acf_include ( 'includes/forms/form-comment.php ' );
213
- acf_include ( 'includes/forms/form-customizer.php ' );
214
- acf_include ( 'includes/forms/form-front.php ' );
215
- acf_include ( 'includes/forms/form-nav-menu.php ' );
216
- acf_include ( 'includes/forms/form-post.php ' );
217
- acf_include ( 'includes/forms/form-gutenberg.php ' );
218
- acf_include ( 'includes/forms/form-taxonomy.php ' );
219
- acf_include ( 'includes/forms/form-user.php ' );
220
- acf_include ( 'includes/forms/form-widget.php ' );
221
-
222
210
// Include admin.
223
211
if ( is_admin () ) {
224
212
acf_include ( 'includes/admin/admin.php ' );
@@ -269,6 +257,9 @@ public function init() {
269
257
// Load textdomain file.
270
258
acf_load_textdomain ();
271
259
260
+ // Update the name setting now that we're in the init hook.
261
+ acf_update_setting ( 'name ' , __ ( 'Secure Custom Fields ' , 'secure-custom-fields ' ) );
262
+
272
263
// Include 3rd party compatiblity.
273
264
acf_include ( 'includes/third-party.php ' );
274
265
@@ -277,6 +268,18 @@ public function init() {
277
268
acf_include ( 'includes/wpml.php ' );
278
269
}
279
270
271
+ // Include forms.
272
+ acf_include ( 'includes/forms/form-attachment.php ' );
273
+ acf_include ( 'includes/forms/form-comment.php ' );
274
+ acf_include ( 'includes/forms/form-customizer.php ' );
275
+ acf_include ( 'includes/forms/form-front.php ' );
276
+ acf_include ( 'includes/forms/form-nav-menu.php ' );
277
+ acf_include ( 'includes/forms/form-post.php ' );
278
+ acf_include ( 'includes/forms/form-gutenberg.php ' );
279
+ acf_include ( 'includes/forms/form-taxonomy.php ' );
280
+ acf_include ( 'includes/forms/form-user.php ' );
281
+ acf_include ( 'includes/forms/form-widget.php ' );
282
+
280
283
// Add post types and taxonomies.
281
284
if ( acf_get_setting ( 'enable_post_types ' ) ) {
282
285
acf_include ( 'includes/post-types/class-acf-taxonomy.php ' );
0 commit comments