Changeset 55990 for trunk/src/wp-includes/functions.php
- Timestamp:
- 06/22/2023 02:55:47 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r55988 r55990 514 514 515 515 // Remove prepended negative sign. 516 if ( '-' === substr( $duration, 0, 1) ) {516 if ( str_starts_with( $duration, '-' ) ) { 517 517 $duration = substr( $duration, 1 ); 518 518 } … … 744 744 } elseif ( ':' !== $data[1] ) { 745 745 return false; 746 } elseif ( ';' !== substr( $data, -1) ) {746 } elseif ( ! str_ends_with( $data, ';' ) ) { 747 747 return false; 748 748 } elseif ( 's' !== $data[0] ) { … … 6362 6362 if ( 'Etc' === $a['continent'] && 'Etc' === $b['continent'] ) { 6363 6363 // Make the order of these more like the old dropdown. 6364 if ( 'GMT+' === substr( $a['city'], 0, 4 ) && 'GMT+' === substr( $b['city'], 0, 4) ) {6364 if ( str_starts_with( $a['city'], 'GMT+' ) && str_starts_with( $b['city'], 'GMT+' ) ) { 6365 6365 return -1 * ( strnatcasecmp( $a['city'], $b['city'] ) ); 6366 6366 } 6367 6367 if ( 'UTC' === $a['city'] ) { 6368 if ( 'GMT+' === substr( $b['city'], 0, 4) ) {6368 if ( str_starts_with( $b['city'], 'GMT+' ) ) { 6369 6369 return 1; 6370 6370 } … … 6372 6372 } 6373 6373 if ( 'UTC' === $b['city'] ) { 6374 if ( 'GMT+' === substr( $a['city'], 0, 4) ) {6374 if ( str_starts_with( $a['city'], 'GMT+' ) ) { 6375 6375 return -1; 6376 6376 }
Note: See TracChangeset
for help on using the changeset viewer.