Changeset 51873
- Timestamp:
- 09/27/2021 12:35:38 AM (4 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r51737 r51873 644 644 if ( ! empty( $site_states ) ) { 645 645 $state_count = count( $site_states ); 646 $i = 0; 646 647 $i = 0; 648 647 649 echo ' — '; 650 648 651 foreach ( $site_states as $state ) { 649 652 ++$i; 650 ( $i == $state_count ) ? $sep = '' : $sep = ', '; 653 654 $sep = ( $i < $state_count ) ? ', ' : ''; 655 651 656 echo "<span class='post-state'>{$state}{$sep}</span>"; 652 657 } -
trunk/src/wp-admin/includes/template.php
r51189 r51873 2146 2146 if ( ! empty( $post_states ) ) { 2147 2147 $state_count = count( $post_states ); 2148 $i = 0; 2148 2149 $i = 0; 2149 2150 2150 2151 $post_states_string .= ' — '; 2151 2152 2152 2153 foreach ( $post_states as $state ) { 2153 $sep = ( ++$i === $state_count ) ? '' : ', '; 2154 ++$i; 2155 2156 $sep = ( $i < $state_count ) ? ', ' : ''; 2154 2157 2155 2158 $post_states_string .= "<span class='post-state'>$state$sep</span>"; … … 2256 2259 if ( ! empty( $media_states ) ) { 2257 2260 $state_count = count( $media_states ); 2258 $i = 0; 2261 2262 $i = 0; 2259 2263 2260 2264 $media_states_string .= ' — '; 2261 2265 2262 2266 foreach ( $media_states as $state ) { 2263 $sep = ( ++$i === $state_count ) ? '' : ', '; 2267 ++$i; 2268 2269 $sep = ( $i < $state_count ) ? ', ' : ''; 2264 2270 2265 2271 $media_states_string .= "<span class='post-state'>$state$sep</span>";
Note: See TracChangeset
for help on using the changeset viewer.