Skip to content

Commit 55929a0

Browse files
Improve comments
1 parent b6ad4cd commit 55929a0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/compat/wordpress-6.7/block-bindings.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Adds the block bindings sources registered in the server to the editor settings.
1010
*
11-
* This allows to bootstrap them in the editor.
11+
* This allows them to be bootstrapped in the editor.
1212
*
1313
* @param array $settings The block editor settings from the `block_editor_settings_all` filter.
1414
* @return array The editor settings including the block bindings sources.

packages/blocks/src/api/test/registration.js

+2
Original file line numberDiff line numberDiff line change
@@ -1513,10 +1513,12 @@ describe( 'blocks', () => {
15131513
} );
15141514

15151515
it( 'should not override label from the server', () => {
1516+
// Simulate bootstrapping a source from the server registration.
15161517
registerBlockBindingsSource( {
15171518
name: 'core/server',
15181519
label: 'Server label',
15191520
} );
1521+
// Override the source with a different label in the client.
15201522
registerBlockBindingsSource( {
15211523
name: 'core/server',
15221524
label: 'Client label',

0 commit comments

Comments
 (0)