mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Replace multiple single line comments with multi-line comments.
This changeset updates various comments as per WordPress PHP Inline Documentation Standards. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments. Follow-up to [56174], [56175], [56176], [56177], [56178]. Props costdev, audrasjb. See #58459. git-svn-id: https://develop.svn.wordpress.org/trunk@56179 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -358,8 +358,10 @@ class WP_Theme_JSON_Resolver {
|
||||
isset( $block_type->supports['spacing']['blockGap']['__experimentalDefault'] ) &&
|
||||
null === _wp_array_get( $config, array( 'styles', 'blocks', $block_name, 'spacing', 'blockGap' ), null )
|
||||
) {
|
||||
// Ensure an empty placeholder value exists for the block, if it provides a default blockGap value.
|
||||
// The real blockGap value to be used will be determined when the styles are rendered for output.
|
||||
/*
|
||||
* Ensure an empty placeholder value exists for the block, if it provides a default blockGap value.
|
||||
* The real blockGap value to be used will be determined when the styles are rendered for output.
|
||||
*/
|
||||
$config['styles']['blocks'][ $block_name ]['spacing']['blockGap'] = null;
|
||||
}
|
||||
}
|
||||
@@ -512,8 +514,10 @@ class WP_Theme_JSON_Resolver {
|
||||
return new WP_Theme_JSON( $config, 'custom' );
|
||||
}
|
||||
|
||||
// Very important to verify that the flag isGlobalStylesUserThemeJSON is true.
|
||||
// If it's not true then the content was not escaped and is not safe.
|
||||
/*
|
||||
* Very important to verify that the flag isGlobalStylesUserThemeJSON is true.
|
||||
* If it's not true then the content was not escaped and is not safe.
|
||||
*/
|
||||
if (
|
||||
is_array( $decoded_data ) &&
|
||||
isset( $decoded_data['isGlobalStylesUserThemeJSON'] ) &&
|
||||
|
||||
Reference in New Issue
Block a user