Make WordPress Core

Changeset 43792


Ignore:
Timestamp:
10/22/2018 09:26:20 PM (8 years ago)
Author:
ocean90
Message:

Meta Boxes: Sync checks for valid meta boxes from do_meta_boxes() to the_block_editor_meta_boxes().

See #45112.

File:
1 edited

Legend:

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

    r43778 r43792  
    20872087                        $meta_boxes = (array) $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ];
    20882088                        foreach ( $meta_boxes as $meta_box ) {
    2089                                 if ( ! empty( $meta_box['title'] ) ) {
    2090                                         $meta_boxes_per_location[ $location ][] = array(
    2091                                                 'id'    => $meta_box['id'],
    2092                                                 'title' => $meta_box['title'],
    2093                                         );
     2089                                if ( false == $meta_box || ! $meta_box['title'] ) {
     2090                                        continue;
    20942091                                }
     2092
     2093                                $meta_boxes_per_location[ $location ][] = array(
     2094                                        'id'    => $meta_box['id'],
     2095                                        'title' => $meta_box['title'],
     2096                                );
    20952097                        }
    20962098                }
Note: See TracChangeset for help on using the changeset viewer.