Ticket #45257: 45257.2.patch
File 45257.2.patch, 1011 bytes (added by , 6 years ago) |
---|
-
src/wp-admin/includes/meta-boxes.php
1360 1360 if ( post_type_supports($post_type, 'trackbacks') ) 1361 1361 add_meta_box('trackbacksdiv', __('Send Trackbacks'), 'post_trackback_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); 1362 1362 1363 if ( post_type_supports($post_type, 'custom-fields') ) 1363 if ( post_type_supports($post_type, 'custom-fields') ) { 1364 1364 $screen = get_current_screen(); 1365 1365 if ( ! $screen || ! $screen->is_block_editor() || (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ) ) { 1366 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 1367 } 1368 } 1368 1369 1369 1370 /** 1370 1371 * Fires in the middle of built-in meta box registration.