From 1f993de9775d415edd35d0faab52700619d9e5df Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 13 Mar 2021 11:15:14 +0000 Subject: [PATCH] Docs: Synchronize `$category_name` description in `WP_Block_Pattern_Categories_Registry` methods. Follow-up to [48156]. See #52628. git-svn-id: https://develop.svn.wordpress.org/trunk@50532 602fd350-edb4-49c9-b593-d223f7449a82 --- .../class-wp-block-pattern-categories-registry.php | 12 ++++++------ src/wp-includes/class-wp-block-patterns-registry.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/class-wp-block-pattern-categories-registry.php b/src/wp-includes/class-wp-block-pattern-categories-registry.php index 740ab0dc8f..90a69f003e 100644 --- a/src/wp-includes/class-wp-block-pattern-categories-registry.php +++ b/src/wp-includes/class-wp-block-pattern-categories-registry.php @@ -32,7 +32,7 @@ final class WP_Block_Pattern_Categories_Registry { * * @since 5.5.0 * - * @param string $category_name Pattern category name. + * @param string $category_name Pattern category name including namespace. * @param array $category_properties Array containing the properties of the category: label. * @return bool True if the pattern was registered with success and false otherwise. */ @@ -55,7 +55,7 @@ final class WP_Block_Pattern_Categories_Registry { * * @since 5.5.0 * - * @param string $category_name Pattern name including namespace. + * @param string $category_name Pattern category name including namespace. * @return bool True if the pattern was unregistered with success and false otherwise. */ public function unregister( $category_name ) { @@ -76,7 +76,7 @@ final class WP_Block_Pattern_Categories_Registry { * * @since 5.5.0 * - * @param string $category_name Pattern category name. + * @param string $category_name Pattern category name including namespace. * @return array Registered pattern properties. */ public function get_registered( $category_name ) { @@ -103,7 +103,7 @@ final class WP_Block_Pattern_Categories_Registry { * * @since 5.5.0 * - * @param string $category_name Pattern category name. + * @param string $category_name Pattern category name including namespace. * @return bool True if the pattern category is registered, false otherwise. */ public function is_registered( $category_name ) { @@ -133,7 +133,7 @@ final class WP_Block_Pattern_Categories_Registry { * * @since 5.5.0 * - * @param string $category_name Pattern category name. + * @param string $category_name Pattern category name including namespace. * @param array $category_properties Array containing the properties of the category. * @return bool True if the pattern category was registered with success and false otherwise. */ @@ -146,7 +146,7 @@ function register_block_pattern_category( $category_name, $category_properties ) * * @since 5.5.0 * - * @param string $category_name Pattern category name including namespace. + * @param string $category_name Pattern category name including namespace. * @return bool True if the pattern category was unregistered with success and false otherwise. */ function unregister_block_pattern_category( $category_name ) { diff --git a/src/wp-includes/class-wp-block-patterns-registry.php b/src/wp-includes/class-wp-block-patterns-registry.php index a8db1e667f..7963440814 100644 --- a/src/wp-includes/class-wp-block-patterns-registry.php +++ b/src/wp-includes/class-wp-block-patterns-registry.php @@ -160,7 +160,7 @@ function register_block_pattern( $pattern_name, $pattern_properties ) { * * @since 5.5.0 * - * @param string $pattern_name Pattern name including namespace. + * @param string $pattern_name Pattern name including namespace. * @return bool True if the pattern was unregistered with success and false otherwise. */ function unregister_block_pattern( $pattern_name ) {