We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc845c8 commit 74f6ec9Copy full SHA for 74f6ec9
lib/compat/wordpress-6.7/block-bindings.php
@@ -56,8 +56,13 @@ function gutenberg_update_meta_args_with_label( $args ) {
56
return $args;
57
}
58
59
+ // Don't update schema if not exposed to REST
60
+ if ( ! isset( $args['show_in_rest'] ) ) {
61
+ return $args;
62
+ }
63
+
64
$schema = array( 'title' => $args['label'] );
- if ( ! empty( $args['show_in_rest'] ) && ! is_array( $args['show_in_rest'] ) ) {
65
+ if ( ! is_array( $args['show_in_rest'] ) ) {
66
$args['show_in_rest'] = array(
67
'schema' => $schema,
68
);
0 commit comments