Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Nov 21, 2024
1 parent 8b92b76 commit f502d30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/compat/wordpress-6.8/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ function gutenberg_stabilize_experimental_block_supports( $args ) {
$stable_config = is_array( $config ) ? $stabilize_config( $config, $stable_support_key ) : $config;

/*
* When both experimental and stable configs are present, use the order they
* are defined in to determine the final value.
* If a plugin overrides the support config with the `register_block_type_args`
* filter, both experimental and stable configs may be present. In that case,
* use the order keys are defined in to determine the final value.
* - If config is an array, merge the arrays in their order of definition.
* - If config is not an array, use the value defined last.
*
Expand Down
5 changes: 3 additions & 2 deletions packages/blocks/src/store/process-block-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ function stabilizeSupports( rawSupports ) {
: config;

/*
* When both experimental and stable configs are present, use the order they
* are defined in to determine the final value.
* If a plugin overrides the support config with the `blocks.registerBlockType`
* filter, both experimental and stable configs may be present. In that case,
* use the order keys are defined in to determine the final value.
* - If config is an array, merge the arrays in their order of definition.
* - If config is not an array, use the value defined last.
*
Expand Down

0 comments on commit f502d30

Please sign in to comment.