Commit e52e48386c for wordpress.org

commit e52e48386cb7c1953747ed3c32e80398fd39fee1
Author: SergeyBiryukov <sergeybiryukov@git.wordpress.org>
Date:   Sun Nov 8 23:50:54 2026 +0000

    Docs: Document `description` for block pattern categories.

    Block pattern categories have accepted a `description` since 6.2.0 / r55097, but the `WP_Block_Pattern_Categories_Registry::register()` docblock only listed `label`.

    This commit:
    - Documents the optional `description` property.
    - Adds a `@since 6.2.0` note for it.
    - Corrects the `@return` description, which referred to a pattern rather than a pattern category.

    Developed in https://github.com/WordPress/wordpress-develop/pull/15505.

    Follow-up to r55097.

    Props mcsf.
    See #65860.
    Built from https://develop.svn.wordpress.org/trunk@65342


    git-svn-id: http://core.svn.wordpress.org/trunk@64482 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/class-wp-block-pattern-categories-registry.php b/wp-includes/class-wp-block-pattern-categories-registry.php
index 30838a65af..87801c67ce 100644
--- a/wp-includes/class-wp-block-pattern-categories-registry.php
+++ b/wp-includes/class-wp-block-pattern-categories-registry.php
@@ -40,14 +40,16 @@ final class WP_Block_Pattern_Categories_Registry {
 	 * Registers a pattern category.
 	 *
 	 * @since 5.5.0
+	 * @since 6.2.0 Added support for the `description` property.
 	 *
 	 * @param string $category_name       Pattern category name including namespace.
 	 * @param array  $category_properties {
 	 *     List of properties for the block pattern category.
 	 *
-	 *     @type string $label Required. A human-readable label for the pattern category.
+	 *     @type string $label       Required. A human-readable label for the pattern category.
+	 *     @type string $description Optional. A human-readable description of the pattern category.
 	 * }
-	 * @return bool True if the pattern was registered with success and false otherwise.
+	 * @return bool True if the pattern category was registered with success and false otherwise.
 	 */
 	public function register( $category_name, $category_properties ) {
 		if ( ! isset( $category_name ) || ! is_string( $category_name ) ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 6f38c99b73..3232398eba 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-beta4-65341';
+$wp_version = '7.2-beta4-65342';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.