From bf3ebaf60f24bf8d4dff2f14cf7ed015783872bc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 26 Jun 2021 11:13:56 +0000 Subject: [PATCH] Docs: Document `api_version` and `variations` properties in `WP_Block_Type::__construct()`. Add `@since` tags for all properties added in WordPress 5.5, 5.6, and 5.8. Follow-up to [47875], [48117], [49224], [50297], [50419], [50527]. Props mbabker. Fixes #53518. Built from https://develop.svn.wordpress.org/trunk@51244 git-svn-id: http://core.svn.wordpress.org/trunk@50853 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-block-type.php | 8 +++++++- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-block-type.php b/wp-includes/class-wp-block-type.php index 6a028b304c..84e956ec9a 100644 --- a/wp-includes/class-wp-block-type.php +++ b/wp-includes/class-wp-block-type.php @@ -193,6 +193,11 @@ class WP_Block_Type { * Will populate object properties from the provided arguments. * * @since 5.0.0 + * @since 5.5.0 Added the `title`, `category`, `parent`, `icon`, `description`, + * `keywords`, `textdomain`, `styles`, `supports`, `example`, + * `uses_context`, and `provides_context` properties. + * @since 5.6.0 Added the `api_version` property. + * @since 5.8.0 Added the `variations` property. * * @see register_block_type() * @@ -201,7 +206,7 @@ class WP_Block_Type { * Optional. Array or string of arguments for registering a block type. Any arguments may be defined, * however the ones described below are supported by default. Default empty array. * - * + * @type string $api_version Block API version. * @type string $title Human-readable block type label. * @type string|null $category Block type category classification, used in * search interfaces to arrange block types by category. @@ -213,6 +218,7 @@ class WP_Block_Type { * result in search interfaces. * @type string|null $textdomain The translation textdomain. * @type array $styles Alternative block styles. + * @type array $variations Block variations. * @type array|null $supports Supported features. * @type array|null $example Structured data for the block preview. * @type callable|null $render_callback Block type render callback. diff --git a/wp-includes/version.php b/wp-includes/version.php index 800e6f195c..b92c2301c8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta4-51243'; +$wp_version = '5.8-beta4-51244'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.