diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php index 02dd6abd2e319..3afc38c8bca42 100644 --- a/src/wp-admin/about.php +++ b/src/wp-admin/about.php @@ -68,7 +68,7 @@

-

+

diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 4b39ff2400945..dc7cfbe2f7bae 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -670,9 +670,11 @@ 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. + * patterns (previously referred to as reusable blocks). For strict accuracy, you + * should use the block parser on post content. * * @since 5.0.0 + * @since 6.3.0 Reusable Blocks renamed to Patterns. * * @see parse_blocks() * diff --git a/src/wp-includes/blocks/block.php b/src/wp-includes/blocks/block.php index d51b35d68b23d..d7906d4869b40 100644 --- a/src/wp-includes/blocks/block.php +++ b/src/wp-includes/blocks/block.php @@ -8,6 +8,8 @@ /** * Renders the `core/block` block on server. * + * @since 6.3.0 Reusable Blocks renamed to Patterns. + * * @param array $attributes The block attributes. * * @return string Rendered HTML of the referenced block. diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php index 305647451b02c..ae5c1ad99ff3b 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php @@ -9,10 +9,11 @@ /** * Controller which provides a REST endpoint for the editor to read, create, - * edit and delete reusable blocks. Blocks are stored as posts with the wp_block - * post type. + * edit and delete patterns (previously referred to as reusable blocks). Patterns are + * stored as posts with the wp_block post type. * * @since 5.0.0 + * @since 6.3.0 Reusable Blocks renamed to Patterns. * * @see WP_REST_Posts_Controller * @see WP_REST_Controller @@ -20,12 +21,13 @@ class WP_REST_Blocks_Controller extends WP_REST_Posts_Controller { /** - * Checks if a block can be read. + * Checks if a pattern (previously referred to as reusable block) can be read. * * @since 5.0.0 + * @since 6.3.0 Reusable Blocks renamed to Patterns. * * @param WP_Post $post Post object that backs the block. - * @return bool Whether the block can be read. + * @return bool Whether the pattern (previously referred to as reusable block) can be read. */ public function check_read_permission( $post ) { // By default the read_post capability is mapped to edit_posts. @@ -41,6 +43,7 @@ public function check_read_permission( $post ) { * * @since 5.0.0 * @since 6.3.0 Adds the `wp_pattern_sync_status` postmeta property to the top level of response. + * @since 6.3.0 Reusable Blocks renamed to Patterns. * * @param array $data Response data to filter. * @param string $context Context defined in the schema. @@ -64,9 +67,11 @@ public function filter_response_by_context( $data, $context ) { } /** - * Retrieves the block's schema, conforming to JSON Schema. + * Retrieves the patterns (previously referred to as reusable blocks) schema, conforming + * to JSON Schema. * * @since 5.0.0 + * @since 6.3.0 Reusable Blocks renamed to Patterns. * * @return array Item schema data. */ diff --git a/tests/phpunit/tests/rest-api/rest-blocks-controller.php b/tests/phpunit/tests/rest-api/rest-blocks-controller.php index 1cdd3474dd174..5a62b9baf51a2 100644 --- a/tests/phpunit/tests/rest-api/rest-blocks-controller.php +++ b/tests/phpunit/tests/rest-api/rest-blocks-controller.php @@ -98,12 +98,14 @@ public function data_capabilities() { /** * Exhaustively check that each role either can or cannot create, edit, - * update, and delete reusable blocks. + * update, and delete patterns (previously referred to as reusable blocks). * * @ticket 45098 * * @dataProvider data_capabilities * + * @since 6.3.0 Reusable Blocks renamed to Patterns. + * * @param string $action Action to perform in the test. * @param string $role User role to test. * @param int $expected_status Expected HTTP response status.