Skip to content

Commit 5592160

Browse files
committed
Minor metabox flag refactor
1 parent 7cf2453 commit 5592160

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

src/wp-admin/includes/post.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,17 +2429,11 @@ function the_block_editor_meta_boxes() {
24292429
continue;
24302430
}
24312431

2432-
$meta_box_entry = array(
2433-
'id' => $meta_box['id'],
2434-
'title' => $meta_box['title'],
2432+
$meta_boxes_per_location[ $location ][] = array(
2433+
'id' => $meta_box['id'],
2434+
'title' => $meta_box['title'],
2435+
'__rtc_compatible' => ! empty( $meta_box['args']['__rtc_compatible_meta_box'] ),
24352436
);
2436-
2437-
// Mark meta boxes compatible with real-time collaboration.
2438-
if ( ! empty( $meta_box['args']['__rtc_compatible_meta_box'] ) ) {
2439-
$meta_box_entry['__rtc_compatible'] = true;
2440-
}
2441-
2442-
$meta_boxes_per_location[ $location ][] = $meta_box_entry;
24432437
}
24442438
}
24452439
}

0 commit comments

Comments
 (0)