diff --git a/packages/block-library/src/block/index.php b/packages/block-library/src/block/index.php index 1cf289e5342bf1..3613680e9e5159 100644 --- a/packages/block-library/src/block/index.php +++ b/packages/block-library/src/block/index.php @@ -29,7 +29,7 @@ function render_block_core_block( $attributes ) { trigger_error( sprintf( // translators: %s is the user-provided title of the reusable block. - __( 'Could not render Reusable Block %s: blocks cannot be rendered inside themselves.' ), + __( 'Could not render Reusable Block %s. Block cannot be rendered inside itself.' ), $reusable_block->post_title ), E_USER_WARNING diff --git a/packages/block-library/src/template-part/index.php b/packages/block-library/src/template-part/index.php index 3106f59aea66fa..df64764e2b2750 100644 --- a/packages/block-library/src/template-part/index.php +++ b/packages/block-library/src/template-part/index.php @@ -29,7 +29,7 @@ function render_block_core_template_part( $attributes ) { isset( $attributes['theme'] ) && wp_get_theme()->get_stylesheet() === $attributes['theme'] ) { - $template_part_id = $attributes['theme'] + '//' + $attributes['slug']; + $template_part_id = $attributes['theme'] . '//' . $attributes['slug']; $template_part_query = new WP_Query( array( 'post_type' => 'wp_template_part', @@ -74,7 +74,7 @@ function render_block_core_template_part( $attributes ) { trigger_error( sprintf( // translators: %s are the block attributes. - __( 'Could not render Template Part block with the attributes %s: blocks cannot be rendered inside themselves.' ), + __( 'Could not render Template Part block with the attributes: %s. Block cannot be rendered inside itself.' ), wp_json_encode( $attributes ) ), E_USER_WARNING