diff --git a/packages/block-library/src/post-categories/index.php b/packages/block-library/src/post-categories/index.php index f50b57312307bd..25715acae7e326 100644 --- a/packages/block-library/src/post-categories/index.php +++ b/packages/block-library/src/post-categories/index.php @@ -25,20 +25,20 @@ function render_block_core_post_categories( $attributes, $content, $block ) { $align_class_name = empty( $attributes['textAlign'] ) ? '' : ' ' . "has-text-align-{$attributes['textAlign']}"; - $categoryLinks = ''; + $category_links = ''; foreach ( $post_categories as $category ) { - $categoryLinks .= sprintf( + $category_links .= sprintf( '%2$s | ', get_category_link( $category->term_id ), esc_html( $category->name ) ); } - $categoryLinks = trim( $categoryLinks, ' | ' ); + $category_links = trim( $category_links, ' | ' ); return sprintf( '