Skip to content

Commit

Permalink
Only pass usesContext properties to block bindings editor APIs (#65661)
Browse files Browse the repository at this point in the history
Co-authored-by: SantosGuillamot <santosguillamot@git.wordpress.org>
Co-authored-by: gziolo <gziolo@git.wordpress.org>

Source: WordPress/gutenberg@87b1251
  • Loading branch information
SantosGuillamot committed Sep 26, 2024
1 parent 89f4377 commit 25ff804
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions build/block-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42610,9 +42610,7 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
// used purposely here to ensure `boundAttributes` is updated whenever
// there are attribute updates.
// `source.getValues` may also call a selector via `registry.select`.
const updatedContext = {
...context
};
const updatedContext = {};
const boundAttributes = (0,external_wp_data_namespaceObject.useSelect)(() => {
if (!blockBindings) {
return;
Expand Down Expand Up @@ -42732,7 +42730,10 @@ const withBlockBindingSupport = (0,external_wp_compose_namespaceObject.createHig
...boundAttributes
},
setAttributes: _setAttributes,
context: updatedContext
context: {
...context,
...updatedContext
}
})
});
}, 'withBlockBindingSupport');
Expand Down
2 changes: 1 addition & 1 deletion build/block-editor/index.min.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '0f5bbe841dd0819b797c');
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '78f8dfe309f6e1f4853e');
2 changes: 1 addition & 1 deletion build/block-editor/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/block-editor/index.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

### BEGIN AUTO-GENERATED DEFINES
define( 'GUTENBERG_VERSION', '19.3.0' );
define( 'GUTENBERG_GIT_COMMIT', '503c484066cf0798a603039766affff44e44d99b' );
define( 'GUTENBERG_GIT_COMMIT', '87b1251e3bc7cca989a928e0f290654332ea2174' );
### END AUTO-GENERATED DEFINES
defined( 'GUTENBERG_MINIMUM_WP_VERSION' ) or define( 'GUTENBERG_MINIMUM_WP_VERSION', '6.5' );

Expand Down

0 comments on commit 25ff804

Please sign in to comment.