Changeset 57707 for trunk/src/wp-includes/functions.php
- Timestamp:
- 02/25/2024 10:15:11 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r57610 r57707 8764 8764 list( $version ) = explode( '-', $wp_version ); 8765 8765 8766 if ( is_string( $required ) ) { 8767 $trimmed = trim( $required ); 8768 8769 if ( substr_count( $trimmed, '.' ) > 1 && str_ends_with( $trimmed, '.0' ) ) { 8770 $required = substr( $trimmed, 0, -2 ); 8771 } 8772 } 8773 8766 8774 return empty( $required ) || version_compare( $version, $required, '>=' ); 8767 8775 }
Note: See TracChangeset
for help on using the changeset viewer.