Changeset 51873 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 09/27/2021 12:35:38 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.