Skip to content

Commit 727ae05

Browse files
committed
Add separator class
1 parent dd6683d commit 727ae05

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

packages/block-library/src/post-terms/edit.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,15 @@ export default function PostTermsEdit( {
106106

107107
{ hasTermLinks &&
108108
! isLoadingTermLinks &&
109-
termLinks.reduce( ( prev, curr ) => [
110-
prev,
111-
separator || ' ',
112-
curr,
113-
] ) }
109+
termLinks.reduce( ( prev, curr ) => (
110+
<>
111+
{ prev }
112+
<span className="wp-block-post-terms__sep">
113+
{ separator || ' ' }
114+
</span>
115+
{ curr }
116+
</>
117+
) ) }
114118

115119
{ ! isLoadingTermLinks &&
116120
! hasTermLinks &&

packages/block-library/src/post-terms/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function render_block_core_post_terms( $attributes, $content, $block ) {
3636
$block->context['postId'],
3737
$attributes['term'],
3838
"<div $wrapper_attributes>",
39-
$separator,
39+
'<span class="wp-block-post-terms__sep">' . $separator . '</span>',
4040
'</div>'
4141
);
4242
}

0 commit comments

Comments
 (0)