Changeset 52628 for trunk/src/wp-includes/functions.php
- Timestamp:
- 01/24/2022 10:39:50 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r52609 r52628 8343 8343 * @since 5.2.0 8344 8344 * 8345 * @global string $wp_version WordPress version. 8346 * 8345 8347 * @param string $required Minimum required WordPress version. 8346 8348 * @return bool True if required version is compatible or empty, false if not. 8347 8349 */ 8348 8350 function is_wp_version_compatible( $required ) { 8349 return empty( $required ) || version_compare( get_bloginfo( 'version' ), $required, '>=' ); 8351 global $wp_version; 8352 8353 // Strip off any -alpha, -RC, -beta, -src suffixes. 8354 list( $version ) = explode( '-', $wp_version ); 8355 8356 return empty( $required ) || version_compare( $version, $required, '>=' ); 8350 8357 } 8351 8358
Note: See TracChangeset
for help on using the changeset viewer.