Make WordPress Core

Changeset 44141 for trunk


Ignore:
Timestamp:
12/14/2018 01:54:40 AM (8 years ago)
Author:
jeremyfelt
Message:

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

Merges [43792] from the 5.0 branch to trunk.

Props ocean90.
See #45112.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

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

    r44131 r44141  
    22362236                        $meta_boxes = (array) $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ];
    22372237                        foreach ( $meta_boxes as $meta_box ) {
    2238                                 if ( ! empty( $meta_box['title'] ) ) {
    2239                                         $meta_boxes_per_location[ $location ][] = array(
    2240                                                 'id'    => $meta_box['id'],
    2241                                                 'title' => $meta_box['title'],
    2242                                         );
     2238                                if ( false == $meta_box || ! $meta_box['title'] ) {
     2239                                        continue;
    22432240                                }
     2241
     2242                                $meta_boxes_per_location[ $location ][] = array(
     2243                                        'id'    => $meta_box['id'],
     2244                                        'title' => $meta_box['title'],
     2245                                );
    22442246                        }
    22452247                }
Note: See TracChangeset for help on using the changeset viewer.