Skip to content

Commit

Permalink
Change default from a pipe to a comma
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jun 18, 2021
1 parent 8c87b1f commit f606ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-terms/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default function PostTermsEdit( {
! isLoadingTermLinks &&
termLinks.reduce( ( prev, curr ) => [
prev,
separator || ' | ',
separator || ', ',
curr,
] ) }

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/post-terms/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function render_block_core_post_terms( $attributes, $content, $block ) {
$classes .= ' has-text-align-' . $attributes['textAlign'];
}

$separator = empty( $attributes['separator'] ) ? ' | ' : $attributes['separator'];
$separator = empty( $attributes['separator'] ) ? ', ' : $attributes['separator'];

$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );

Expand Down

0 comments on commit f606ec6

Please sign in to comment.