Skip to content

Commit 65df002

Browse files
committed
fixes trac#64330
1 parent 38c3584 commit 65df002

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/wp-admin/includes/class-wp-ms-sites-list-table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,13 +676,14 @@ protected function site_states( $site ) {
676676
$state_count = count( $site_states );
677677

678678
$i = 0;
679+
$s = wp_get_list_item_separator();
679680

680681
echo ' — ';
681682

682683
foreach ( $site_states as $state ) {
683684
++$i;
684685

685-
$separator = ( $i < $state_count ) ? ', ' : '';
686+
$separator = ( $i < $state_count ) ? $s : '';
686687

687688
echo "<span class='post-state'>{$state}{$separator}</span>";
688689
}

src/wp-admin/includes/template.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,13 +2253,14 @@ function _post_states( $post, $display = true ) {
22532253
$state_count = count( $post_states );
22542254

22552255
$i = 0;
2256+
$s = wp_get_list_item_separator();
22562257

22572258
$post_states_html .= ' &mdash; ';
22582259

22592260
foreach ( $post_states as $state ) {
22602261
++$i;
22612262

2262-
$separator = ( $i < $state_count ) ? ', ' : '';
2263+
$separator = ( $i < $state_count ) ? $s : '';
22632264

22642265
$post_states_html .= "<span class='post-state'>{$state}{$separator}</span>";
22652266
}
@@ -2381,13 +2382,14 @@ function _media_states( $post, $display = true ) {
23812382
$state_count = count( $media_states );
23822383

23832384
$i = 0;
2385+
$s = wp_get_list_item_separator();
23842386

23852387
$media_states_string .= ' &mdash; ';
23862388

23872389
foreach ( $media_states as $state ) {
23882390
++$i;
23892391

2390-
$separator = ( $i < $state_count ) ? ', ' : '';
2392+
$separator = ( $i < $state_count ) ? $s : '';
23912393

23922394
$media_states_string .= "<span class='post-state'>{$state}{$separator}</span>";
23932395
}

0 commit comments

Comments
 (0)