Changeset 56032
- Timestamp:
- 06/26/2023 10:42:54 AM (15 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-constants.php
r54236 r56032 106 106 if ( ! defined( 'SCRIPT_DEBUG' ) ) { 107 107 if ( ! empty( $wp_version ) ) { 108 $develop_src = false !== strpos( $wp_version, '-src' );108 $develop_src = str_contains( $wp_version, '-src' ); 109 109 } else { 110 110 $develop_src = false; -
trunk/src/wp-includes/load.php
r56031 r56032 1506 1506 $bytes = (int) $value; 1507 1507 1508 if ( false !== strpos( $value, 'g' ) ) {1508 if ( str_contains( $value, 'g' ) ) { 1509 1509 $bytes *= GB_IN_BYTES; 1510 } elseif ( false !== strpos( $value, 'm' ) ) {1510 } elseif ( str_contains( $value, 'm' ) ) { 1511 1511 $bytes *= MB_IN_BYTES; 1512 } elseif ( false !== strpos( $value, 'k' ) ) {1512 } elseif ( str_contains( $value, 'k' ) ) { 1513 1513 $bytes *= KB_IN_BYTES; 1514 1514 } … … 1789 1789 if ( isset( $_SERVER['HTTP_ACCEPT'] ) ) { 1790 1790 foreach ( $accepted as $type ) { 1791 if ( false !== strpos( $_SERVER['HTTP_ACCEPT'], $type ) ) {1791 if ( str_contains( $_SERVER['HTTP_ACCEPT'], $type ) ) { 1792 1792 return true; 1793 1793 }
Note: See TracChangeset
for help on using the changeset viewer.