File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const createEditFunctionWithBindingsAttribute = () =>
4747 settings . source
4848 ) ;
4949
50- if ( source ) {
50+ if ( source && source . useSource ) {
5151 // Second argument (`updateMetaValue`) will be used to update the value in the future.
5252 const {
5353 placeholder,
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ import { dispatch } from '@wordpress/data';
77 * Internal dependencies
88 */
99import { unlock } from '../lock-unlock' ;
10+ import patternOverrides from './pattern-overrides' ;
1011import postMeta from './post-meta' ;
1112
1213const { registerBlockBindingsSource } = unlock ( dispatch ( blockEditorStore ) ) ;
14+ registerBlockBindingsSource ( patternOverrides ) ;
1315registerBlockBindingsSource ( postMeta ) ;
Original file line number Diff line number Diff line change 1+ /**
2+ * WordPress dependencies
3+ */
4+ import { __ } from '@wordpress/i18n' ;
5+
6+ export default {
7+ name : 'core/pattern-overrides' ,
8+ label : __ ( 'Pattern Overrides' ) ,
9+ useSource : null ,
10+ lockAttributesEditing : false ,
11+ } ;
You can’t perform that action at this time.
0 commit comments