Skip to content

Commit

Permalink
Use uses_context in pattern overrides source
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Feb 9, 2024
1 parent 73ba02f commit 828dd93
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 17 deletions.
1 change: 1 addition & 0 deletions src/wp-includes/block-bindings/pattern-overrides.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function _register_block_bindings_pattern_overrides_source() {
array(
'label' => _x( 'Pattern Overrides', 'block bindings source' ),
'get_value_callback' => '_block_bindings_pattern_overrides_get_value',
'uses_context' => array( 'pattern/overrides' ),
)
);
}
Expand Down
8 changes: 0 additions & 8 deletions src/wp-includes/blocks/blocks-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,6 @@
'link'
),
'textdomain' => 'default',
'usesContext' => array(
'pattern/overrides'
),
'attributes' => array(
'tagName' => array(
'type' => 'string',
Expand Down Expand Up @@ -2122,9 +2119,6 @@
'subtitle'
),
'textdomain' => 'default',
'usesContext' => array(
'pattern/overrides'
),
'attributes' => array(
'textAlign' => array(
'type' => 'string'
Expand Down Expand Up @@ -2265,7 +2259,6 @@
'allowResize',
'imageCrop',
'fixedHeight',
'pattern/overrides'
),
'description' => 'Insert an image to make a visual statement.',
'keywords' => array(
Expand Down Expand Up @@ -3447,7 +3440,6 @@
'textdomain' => 'default',
'usesContext' => array(
'postId',
'pattern/overrides'
),
'attributes' => array(
'align' => array(
Expand Down
1 change: 0 additions & 1 deletion src/wp-includes/blocks/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"description": "Prompt visitors to take action with a button-style link.",
"keywords": [ "link" ],
"textdomain": "default",
"usesContext": [ "pattern/overrides" ],
"attributes": {
"tagName": {
"type": "string",
Expand Down
1 change: 0 additions & 1 deletion src/wp-includes/blocks/heading/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"description": "Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",
"keywords": [ "title", "subtitle" ],
"textdomain": "default",
"usesContext": [ "pattern/overrides" ],
"attributes": {
"textAlign": {
"type": "string"
Expand Down
7 changes: 1 addition & 6 deletions src/wp-includes/blocks/image/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
"name": "core/image",
"title": "Image",
"category": "media",
"usesContext": [
"allowResize",
"imageCrop",
"fixedHeight",
"pattern/overrides"
],
"usesContext": [ "allowResize", "imageCrop", "fixedHeight" ],
"description": "Insert an image to make a visual statement.",
"keywords": [ "img", "photo", "picture" ],
"textdomain": "default",
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/blocks/paragraph/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "Start with the basic building block of all narrative.",
"keywords": [ "text" ],
"textdomain": "default",
"usesContext": [ "postId", "pattern/overrides" ],
"usesContext": [ "postId" ],
"attributes": {
"align": {
"type": "string"
Expand Down

0 comments on commit 828dd93

Please sign in to comment.