Hi,
I update from 1.25.x to 1.26.2 and inside Rest API of wordpress, <InnerBlocks /> is not interprated.
It's ok on the editor, it's ok on standard webpage but on Rest API it's not.
Screenshot from Gutenberg
Screenshot from website
Screenshot from Rest API
add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
$meta_boxes[] = [
'title' => 'Hero Content',
'id' => 'hero-content',
'description' => 'A custom hero content block',
// Block settings.
'type' => 'block',
'icon' => 'awards',
'category' => 'layout',
'context' => 'side',
'render_callback' => function($attributes){
echo '<header>'.$attributes['title'].'</header><section><InnerBlocks /></section>';
},
'enqueue_style' => get_template_directory_uri() . '/blocks/hero/style.css',
'supports' => [
'align' => ['wide', 'full'],
],
// Block fields.
'fields' => [
[
'id' => 'title',
'name' => 'Title',
],
],
];
return $meta_boxes;
} );
General informations
This test come from a new wordpress from scratch.
Edit first article, push the code inside functions.php of twentytwentyfour
Wordpress Version : 6.5.2
Meta Box: 5.9.7
MetaB Box AIO: 1.26.2 (only MB Block activated)
Theme Twenty Twenty-Four 1.1
PHP 8.2.18 (came from docker image)
Activated plugins
Meta Box
Meta Box AIO
If I switch to meta box aio 1.25 all is fine