Changeset 44175
- Timestamp:
- 12/14/2018 09:41:56 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43839
- Property svn:mergeinfo changed
-
trunk/src/wp-admin/includes/template.php
r44174 r44175 1138 1138 } 1139 1139 1140 $block_compatible = true; 1140 1141 if ( is_array( $box[ 'args' ] ) ) { 1141 1142 // If a meta box is just here for back compat, don't show it in the block editor. … … 1149 1150 } 1150 1151 1151 $block_compatible = true;1152 1152 if ( isset( $box['args']['__block_editor_compatible_meta_box'] ) ) { 1153 1153 $block_compatible = (bool) $box['args']['__block_editor_compatible_meta_box']; … … 1187 1187 echo '<div class="inside">' . "\n"; 1188 1188 1189 if ( WP_DEBUG && ! $ screen->is_block_editor() && ! isset( $_GET['meta-box-loader'] ) ) {1189 if ( WP_DEBUG && ! $block_compatible && 'edit' === $screen->parent_base && ! $screen->is_block_editor() && ! isset( $_GET['meta-box-loader'] ) ) { 1190 1190 if ( is_array( $box['callback'] ) ) { 1191 1191 $reflection = new ReflectionMethod( $box['callback'][0], $box['callback'][1] );
Note: See TracChangeset
for help on using the changeset viewer.