Make WordPress Core


Ignore:
Timestamp:
12/17/2018 09:51:43 PM (8 years ago)
Author:
desrosj
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, ocean90.

Merges [43941] and [43945] to trunk.

Fixes #45217.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/includes/post.php

    r44260 r44280  
    22602260                                }
    22612261
    2262                                 // If a meta box doesn't work in the block editor, don't show it in the block editor.
    2263                                 if ( isset( $meta_box['args']['__block_editor_compatible_meta_box'] ) && ! $meta_box['args']['__block_editor_compatible_meta_box'] ) {
    2264                                         continue;
    2265                                 }
    2266 
    22672262                                $meta_boxes_per_location[ $location ][] = array(
    22682263                                        'id'    => $meta_box['id'],
Note: See TracChangeset for help on using the changeset viewer.