diff --git a/packages/block-library/src/pattern/index.php b/packages/block-library/src/pattern/index.php index 4af986c423d01..cb3be0370a4f6 100644 --- a/packages/block-library/src/pattern/index.php +++ b/packages/block-library/src/pattern/index.php @@ -22,30 +22,35 @@ function register_block_core_pattern() { /** * Renders the `core/pattern` block on the server. * - * @param array $attributes Block attributes. - * @param string $content The block rendered content. + * @param array $attributes Block attributes. * * @return string Returns the output of the pattern. */ -function render_block_core_pattern( $attributes, $content ) { +function render_block_core_pattern( $attributes ) { if ( empty( $attributes['slug'] ) ) { return ''; } - $slug_classname = str_replace( '/', '-', $attributes['slug'] ); - $classnames = isset( $attributes['className'] ) ? $attributes['className'] . ' ' . $slug_classname : $slug_classname; - $wrapper = '