Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Jul 17, 2024
1 parent b6ad4cd commit 55929a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.7/block-bindings.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Adds the block bindings sources registered in the server to the editor settings.
*
* This allows to bootstrap them in the editor.
* This allows them to be bootstrapped in the editor.
*
* @param array $settings The block editor settings from the `block_editor_settings_all` filter.
* @return array The editor settings including the block bindings sources.
Expand Down
2 changes: 2 additions & 0 deletions packages/blocks/src/api/test/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -1513,10 +1513,12 @@ describe( 'blocks', () => {
} );

it( 'should not override label from the server', () => {
// Simulate bootstrapping a source from the server registration.
registerBlockBindingsSource( {
name: 'core/server',
label: 'Server label',
} );
// Override the source with a different label in the client.
registerBlockBindingsSource( {
name: 'core/server',
label: 'Client label',
Expand Down

0 comments on commit 55929a0

Please sign in to comment.