diff --git a/lib/compat/wordpress-6.7/block-bindings.php b/lib/compat/wordpress-6.7/block-bindings.php index 9ff6083b1c4c86..1aaaf7bd3cb1b3 100644 --- a/lib/compat/wordpress-6.7/block-bindings.php +++ b/lib/compat/wordpress-6.7/block-bindings.php @@ -61,8 +61,12 @@ function gutenberg_add_can_update_block_bindings_editor_setting( $editor_setting * @return array Modified arguments array including `label`. */ function gutenberg_update_meta_args_with_label( $args ) { - // Default to empty string. - $schema = array( 'title' => isset( $args['label'] ) ? $args['label'] : '' ); + // Don't update schema when label isn't provided. + if ( ! isset( $args['label'] ) ) { + return $args; + } + + $schema = array( 'title' => $args['label'] ); if ( ! is_array( $args['show_in_rest'] ) ) { $args['show_in_rest'] = array( 'schema' => $schema,