Changeset 43839 for branches/5.0/src/wp-admin/includes/template.php
- Timestamp:
- 10/29/2018 04:02:40 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-admin/includes/template.php
r43838 r43839 1053 1053 continue; 1054 1054 1055 $block_compatible = true; 1055 1056 if ( is_array( $box[ 'args' ] ) ) { 1056 1057 // If a meta box is just here for back compat, don't show it in the block editor. … … 1064 1065 } 1065 1066 1066 $block_compatible = true;1067 1067 if ( isset( $box['args']['__block_editor_compatible_meta_box'] ) ) { 1068 1068 $block_compatible = (bool) $box['args']['__block_editor_compatible_meta_box']; … … 1096 1096 echo '<div class="inside">' . "\n"; 1097 1097 1098 if ( WP_DEBUG && ! $ screen->is_block_editor() && ! isset( $_GET['meta-box-loader'] ) ) {1098 if ( WP_DEBUG && ! $block_compatible && 'edit' === $screen->parent_base && ! $screen->is_block_editor() && ! isset( $_GET['meta-box-loader'] ) ) { 1099 1099 if ( is_array( $box['callback'] ) ) { 1100 1100 $reflection = new ReflectionMethod( $box['callback'][0], $box['callback'][1] );
Note: See TracChangeset
for help on using the changeset viewer.