Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/wp-admin/includes/class-wp-ms-sites-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,13 +676,14 @@ protected function site_states( $site ) {
$state_count = count( $site_states );

$i = 0;
$s = wp_get_list_item_separator();

echo ' — ';

foreach ( $site_states as $state ) {
++$i;

$separator = ( $i < $state_count ) ? ', ' : '';
$separator = ( $i < $state_count ) ? $s : '';

echo "<span class='post-state'>{$state}{$separator}</span>";
}
Expand Down
6 changes: 4 additions & 2 deletions src/wp-admin/includes/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -2253,13 +2253,14 @@ function _post_states( $post, $display = true ) {
$state_count = count( $post_states );

$i = 0;
$s = wp_get_list_item_separator();

$post_states_html .= ' &mdash; ';

foreach ( $post_states as $state ) {
++$i;

$separator = ( $i < $state_count ) ? ', ' : '';
$separator = ( $i < $state_count ) ? $s : '';

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

$i = 0;
$s = wp_get_list_item_separator();

$media_states_string .= ' &mdash; ';

foreach ( $media_states as $state ) {
++$i;

$separator = ( $i < $state_count ) ? ', ' : '';
$separator = ( $i < $state_count ) ? $s : '';

$media_states_string .= "<span class='post-state'>{$state}{$separator}</span>";
}
Expand Down
Loading