Docs: Correct alignment in `WP_Block_Bindings_Registry::register()` DocBlock.

Follow-up to [57373], [57375], [57641].

Props nareshbheda, mukesh27.
Fixes #61412.
Built from https://develop.svn.wordpress.org/trunk@58395


git-svn-id: http://core.svn.wordpress.org/trunk@57844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-06-12 12:44:13 +00:00
parent 24a4ef96be
commit bd77cc433d
3 changed files with 29 additions and 29 deletions

View File

@ -75,19 +75,19 @@
* @param array $source_properties { * @param array $source_properties {
* The array of arguments that are used to register a source. * The array of arguments that are used to register a source.
* *
* @type string $label The label of the source. * @type string $label The label of the source.
* @type callable $get_value_callback A callback executed when the source is processed during block rendering. * @type callable $get_value_callback A callback executed when the source is processed during block rendering.
* The callback should have the following signature: * The callback should have the following signature:
* *
* `function ($source_args, $block_instance,$attribute_name): mixed` * `function( $source_args, $block_instance, $attribute_name ): mixed`
* - @param array $source_args Array containing source arguments * - @param array $source_args Array containing source arguments
* used to look up the override value, * used to look up the override value,
* i.e. {"key": "foo"}. * i.e. {"key": "foo"}.
* - @param WP_Block $block_instance The block instance. * - @param WP_Block $block_instance The block instance.
* - @param string $attribute_name The name of an attribute . * - @param string $attribute_name The name of an attribute.
* The callback has a mixed return type; it may return a string to override * The callback has a mixed return type; it may return a string to override
* the block's original value, null, false to remove an attribute, etc. * the block's original value, null, false to remove an attribute, etc.
* @type string[] $uses_context (optional) Array of values to add to block `uses_context` needed by the source. * @type string[] $uses_context Optional. Array of values to add to block `uses_context` needed by the source.
* } * }
* @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure. * @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure.
*/ */

View File

@ -72,25 +72,25 @@ final class WP_Block_Bindings_Registry {
* *
* @since 6.5.0 * @since 6.5.0
* *
* @param string $source_name The name of the source. It must be a string containing a namespace prefix, i.e. * @param string $source_name The name of the source. It must be a string containing a namespace prefix, i.e.
* `my-plugin/my-custom-source`. It must only contain lowercase alphanumeric * `my-plugin/my-custom-source`. It must only contain lowercase alphanumeric
* characters, the forward slash `/` and dashes. * characters, the forward slash `/` and dashes.
* @param array $source_properties { * @param array $source_properties {
* The array of arguments that are used to register a source. * The array of arguments that are used to register a source.
* *
* @type string $label The label of the source. * @type string $label The label of the source.
* @type callable $get_value_callback A callback executed when the source is processed during block rendering. * @type callable $get_value_callback A callback executed when the source is processed during block rendering.
* The callback should have the following signature: * The callback should have the following signature:
* *
* `function ($source_args, $block_instance,$attribute_name): mixed` * `function( $source_args, $block_instance, $attribute_name ): mixed`
* - @param array $source_args Array containing source arguments * - @param array $source_args Array containing source arguments
* used to look up the override value, * used to look up the override value,
* i.e. {"key": "foo"}. * i.e. {"key": "foo"}.
* - @param WP_Block $block_instance The block instance. * - @param WP_Block $block_instance The block instance.
* - @param string $attribute_name The name of the target attribute. * - @param string $attribute_name The name of the target attribute.
* The callback has a mixed return type; it may return a string to override * The callback has a mixed return type; it may return a string to override
* the block's original value, null, false to remove an attribute, etc. * the block's original value, null, false to remove an attribute, etc.
* @type string[] $uses_context (optional) Array of values to add to block `uses_context` needed by the source. * @type string[] $uses_context Optional. Array of values to add to block `uses_context` needed by the source.
* } * }
* @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure. * @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure.
*/ */

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.6-beta2-58394'; $wp_version = '6.6-beta2-58395';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.