From bb11a85be03dec71b91de0723fed9111c460bb1b Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Wed, 21 Sep 2022 13:42:09 +0000 Subject: [PATCH] Docs: Fix `wp_get_layout_style()` parameter documentation. * Changed `boolean` to `bool`. * Added `Optional.` and `Default` for each optional parameter. * Improved `@return` documentation to include empty string. Follow-up to [54274], [53421], [53085], [52069]. Props mukesh27, hellofromTonya. See #55646. Built from https://develop.svn.wordpress.org/trunk@54275 git-svn-id: http://core.svn.wordpress.org/trunk@53834 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-supports/layout.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/block-supports/layout.php b/wp-includes/block-supports/layout.php index a00d39f7e2..1ac0794171 100644 --- a/wp-includes/block-supports/layout.php +++ b/wp-includes/block-supports/layout.php @@ -39,12 +39,12 @@ function wp_register_layout_support( $block_type ) { * @param string $selector CSS selector. * @param array $layout Layout object. The one that is passed has already checked * the existence of default block layout. - * @param boolean $has_block_gap_support Whether the theme has support for the block gap. + * @param bool $has_block_gap_support Optional. Whether the theme has support for the block gap. Default false. * @param string|string[]|null $gap_value Optional. The block gap value to apply. Default null. - * @param boolean $should_skip_gap_serialization Whether to skip applying the user-defined value set in the editor. - * @param string $fallback_gap_value The block gap value to apply. + * @param bool $should_skip_gap_serialization Optional. Whether to skip applying the user-defined value set in the editor. Default false. + * @param string $fallback_gap_value Optional. The block gap value to apply. Default '0.5em'. * @param array|null $block_spacing Optional. Custom spacing set on the block. Default null. - * @return string CSS style. + * @return string CSS styles on success. Else, empty string. */ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false, $gap_value = null, $should_skip_gap_serialization = false, $fallback_gap_value = '0.5em', $block_spacing = null ) { $layout_type = isset( $layout['type'] ) ? $layout['type'] : 'default'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 9dfb38e758..bb407e0fff 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54274'; +$wp_version = '6.1-alpha-54275'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.