WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/23/2018 08:14:07 AM (22 months ago)
Author:
pento
Message:

Block Editor: Add a placeholder for meta boxes that don't work in the block editor.

If a meta box is registered with the __block_editor_compatible_meta_box set to false, it's indicating that it doesn't work in the block editor. If that's the case, we can add a place holder to inform the user that they'll need to use the classic interface to work with this meta box.

Props pento, jorgefilipecosta, peterwilsoncc, karmatosed, noisysocks, dd32.
See #45217.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/includes/post.php

    r43883 r43941  
    21112111                }
    21122112
    2113                 // If a meta box doesn't work in the block editor, don't show it in the block editor.
    2114                 if ( isset( $meta_box['args']['__block_editor_compatible_meta_box'] ) && ! $meta_box['args']['__block_editor_compatible_meta_box'] ) {
    2115                     continue;
    2116                 }
    2117 
    21182113                $meta_boxes_per_location[ $location ][] = array(
    21192114                    'id'    => $meta_box['id'],
Note: See TracChangeset for help on using the changeset viewer.