mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 20:15:08 +00:00
Meta Boxes: Sync checks for valid meta boxes from do_meta_boxes()
to the_block_editor_meta_boxes()
.
See #45112. Built from https://develop.svn.wordpress.org/branches/5.0@43792 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4caf9b7aaf
commit
957a6af144
@ -2086,12 +2086,14 @@ function the_block_editor_meta_boxes() {
|
||||
|
||||
$meta_boxes = (array) $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ];
|
||||
foreach ( $meta_boxes as $meta_box ) {
|
||||
if ( ! empty( $meta_box['title'] ) ) {
|
||||
$meta_boxes_per_location[ $location ][] = array(
|
||||
'id' => $meta_box['id'],
|
||||
'title' => $meta_box['title'],
|
||||
);
|
||||
if ( false == $meta_box || ! $meta_box['title'] ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$meta_boxes_per_location[ $location ][] = array(
|
||||
'id' => $meta_box['id'],
|
||||
'title' => $meta_box['title'],
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-43791';
|
||||
$wp_version = '5.0-alpha-43792';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user