Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
77047c3
Add custom fields experimental setting
cbravobernal Aug 1, 2023
ff12248
Add connections experimental setting, block inspector control and blo…
cbravobernal Aug 1, 2023
514a068
Add "connections" block attribute and get the meta field
michalczaplinski Aug 1, 2023
66a9aef
Merge branch 'experiment/add-custom-connectinons-inspector-control' i…
michalczaplinski Aug 1, 2023
5fbf21c
Get rid of a phpcs warning
michalczaplinski Aug 1, 2023
a493bb1
Update attribute acces and source definition
michalczaplinski Aug 2, 2023
7575b40
Updated the 'connections' property to include 'attributes'
michalczaplinski Aug 2, 2023
f8ee25e
Merge branch 'experiment/add-custom-connectinons-inspector-control' i…
michalczaplinski Aug 2, 2023
39cb931
Add `attributes` to TextControl value
michalczaplinski Aug 2, 2023
fa042ca
Add `attributes` to TextControl value
michalczaplinski Aug 2, 2023
64a5f03
Wrap the PHP code in experimental flag
michalczaplinski Aug 2, 2023
d7fccec
Merge branch 'experiment/add-custom-connectinons-inspector-control' i…
michalczaplinski Aug 2, 2023
0b52159
Update parens
michalczaplinski Aug 2, 2023
2014934
Return early if there is no support for connections
michalczaplinski Aug 2, 2023
52b4a58
Updated block type checks
michalczaplinski Aug 2, 2023
cbec419
Updated experimental blocks logic
michalczaplinski Aug 2, 2023
c29d885
Add a comment in meta.php
michalczaplinski Aug 2, 2023
9f0d851
Update comment
cbravobernal Aug 2, 2023
1c65e74
Clear the paragraph if meta value is cleared
cbravobernal Aug 2, 2023
8638dff
Use placeholders instead of content
cbravobernal Aug 2, 2023
88dd0b5
Update names of HTML processor instances in meta.php
michalczaplinski Aug 3, 2023
81f9c67
Add extra comments
michalczaplinski Aug 3, 2023
60fa061
Merge branch 'experiment/add-custom-connectinons-inspector-control' i…
michalczaplinski Aug 3, 2023
713c6df
Rephrase the placeholder comment
michalczaplinski Aug 3, 2023
e80effe
Check if current block is a paragraph or image
michalczaplinski Aug 3, 2023
7640a60
Abstract the attribute name to use for the connection
michalczaplinski Aug 3, 2023
f0bcb0f
rename `connections` to `__experimentalConnections`
michalczaplinski Aug 7, 2023
6a2785f
Do not export `addAttribute()` or `withInspectorControl()`
michalczaplinski Aug 7, 2023
4408e69
Merge branch 'experiment/add-custom-connectinons-inspector-control' i…
michalczaplinski Aug 7, 2023
5cd3d22
Renamed '__experimentalConnections' to 'connections' in block settings
michalczaplinski Aug 7, 2023
6d00a9b
Renamed '__experimentalConnections' to 'connections' in block settings
michalczaplinski Aug 7, 2023
367ee0c
Remove `connections` attribute from block.json
michalczaplinski Aug 7, 2023
a45e464
Renamed '__experimentalConnections' to 'connections' in block settings
michalczaplinski Aug 7, 2023
84f2a08
Remove `get_updated_html() . ''` in meta.php
michalczaplinski Aug 7, 2023
49d5cb6
Add an allowlist of blocks/attributes
michalczaplinski Aug 7, 2023
414b322
Refactor blocks.php & custom sources
michalczaplinski Aug 7, 2023
92c3cd9
Remove trailing comma?
michalczaplinski Aug 8, 2023
ba713a4
Update naming:
michalczaplinski Aug 9, 2023
a5b9e3b
Merge branch 'trunk' into experiment/add-custom-connectinons-inspecto…
michalczaplinski Aug 9, 2023
a0bd2ca
Merge branch 'experiment/add-custom-connectinons-inspector-control' i…
michalczaplinski Aug 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Renamed '__experimentalConnections' to 'connections' in block settings
  • Loading branch information
michalczaplinski committed Aug 7, 2023
commit a45e464d3fb179515b6d5273226034cc00fc3dbb
2 changes: 1 addition & 1 deletion lib/experimental/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function gutenberg_render_custom_sources( $block_content, $block, $block_instanc
}

// If the block does not have support for connections, skip it.
if ( ! block_has_support( $block_type, array( 'connections' ), false ) ) {
if ( ! block_has_support( $block_type, array( '__experimentalConnections' ), false ) ) {
return $block_content;
}

Expand Down