From ac2b1a56d2ae548aff8df891a6a7b5cf0a173b67 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 31 Oct 2023 12:58:23 +0000 Subject: [PATCH] Docs: Update some reusable block references to synced patterns. In WordPress 6.3, [https://wordpress.org/documentation/article/reusable-blocks/ Reusable Blocks were renamed to Patterns]. A synced pattern will behave in exactly the same way as a reusable block. This commit updates some references in DocBlocks and inline comments to use the new name. Follow-up to [56030]. Props benjaminknox, oglekler, hellofromTonya, marybaum, nicolefurlan. Fixes #59388. Built from https://develop.svn.wordpress.org/trunk@57032 git-svn-id: http://core.svn.wordpress.org/trunk@56543 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks.php | 3 +- .../class-wp-rest-blocks-controller.php | 30 +++++++++---------- wp-includes/version.php | 2 +- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index ce5853d32d..1edc0762d3 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -659,7 +659,8 @@ function has_blocks( $post = null ) { * * This test optimizes for performance rather than strict accuracy, detecting * whether the block type exists but not validating its structure and not checking - * reusable blocks. For strict accuracy, you should use the block parser on post content. + * synced patterns (formerly called reusable blocks). For strict accuracy, + * you should use the block parser on post content. * * @since 5.0.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php index 305647451b..7999b02309 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php @@ -1,6 +1,6 @@