Changeset 43861 for branches/5.0/src/wp-admin/includes/meta-boxes.php
- Timestamp:
- 11/03/2018 07:56:28 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-admin/includes/meta-boxes.php
r43837 r43861 1362 1362 1363 1363 if ( post_type_supports($post_type, 'custom-fields') ) 1364 add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); 1364 $screen = get_current_screen(); 1365 if ( ! $screen || ! $screen->is_block_editor() || (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ) ) { 1366 add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => false, '__block_editor_compatible_meta_box' => true ) ); 1367 } 1365 1368 1366 1369 /**
Note: See TracChangeset
for help on using the changeset viewer.