From 0714e459989cb1070fd1d812e3b1709534f019e1 Mon Sep 17 00:00:00 2001 From: Copons Date: Tue, 21 Jul 2020 13:16:53 +0100 Subject: [PATCH] Fix incorrect case format --- packages/block-library/src/post-categories/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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( '
%2$s
', 'wp-block-post-categories' . esc_attr( $align_class_name ), - $categoryLinks + $category_links ); }