- Timestamp:
- 05/20/2022 05:36:23 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r53131 r53426 223 223 global $wpdb; 224 224 225 $php_compat = version_compare( phpversion(), $item->php_version, '>=' );225 $php_compat = version_compare( PHP_VERSION, $item->php_version, '>=' ); 226 226 if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { 227 227 $mysql_compat = true; … … 237 237 // If updating a plugin or theme, ensure the minimum PHP version requirements are satisfied. 238 238 if ( in_array( $type, array( 'plugin', 'theme' ), true ) ) { 239 if ( ! empty( $item->requires_php ) && version_compare( phpversion(), $item->requires_php, '<' ) ) {239 if ( ! empty( $item->requires_php ) && version_compare( PHP_VERSION, $item->requires_php, '<' ) ) { 240 240 return false; 241 241 }
Note: See TracChangeset
for help on using the changeset viewer.