Make WordPress Core

Ticket #45249: 45249.diff

File 45249.diff, 863 bytes (added by noisysocks, 7 years ago)
  • src/wp-admin/includes/post.php

     
    20962096                                        continue;
    20972097                                }
    20982098
     2099                                // If a meta box is just here for back compat, don't show it in the block editor.
     2100                                if ( isset( $meta_box['args']['__back_compat_meta_box'] ) && $meta_box['args']['__back_compat_meta_box'] ) {
     2101                                        continue;
     2102                                }
     2103
     2104                                // If a meta box doesn't work in the block editor, don't show it in the block editor.
     2105                                if ( isset( $meta_box['args']['__block_editor_compatible_meta_box'] ) && ! $meta_box['args']['__block_editor_compatible_meta_box'] ) {
     2106                                        continue;
     2107                                }
     2108
    20992109                                $meta_boxes_per_location[ $location ][] = array(
    21002110                                        'id'    => $meta_box['id'],
    21012111                                        'title' => $meta_box['title'],