Changeset 53426
- Timestamp:
- 05/20/2022 05:36:23 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-installer-skin.php
r50931 r53426 267 267 /* translators: 1: Current PHP version, 2: Version required by the uploaded plugin. */ 268 268 __( 'The PHP version on your server is %1$s, however the uploaded plugin requires %2$s.' ), 269 phpversion(),269 PHP_VERSION, 270 270 $requires_php 271 271 ); -
trunk/src/wp-admin/includes/class-plugin-upgrader.php
r52997 r53426 448 448 /* translators: 1: Current PHP version, 2: Version required by the uploaded plugin. */ 449 449 __( 'The PHP version on your server is %1$s, however the uploaded plugin requires %2$s.' ), 450 phpversion(),450 PHP_VERSION, 451 451 $requires_php 452 452 ); -
trunk/src/wp-admin/includes/class-theme-installer-skin.php
r52802 r53426 302 302 /* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */ 303 303 __( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s.' ), 304 phpversion(),304 PHP_VERSION, 305 305 $requires_php 306 306 ); -
trunk/src/wp-admin/includes/class-theme-upgrader.php
r53416 r53426 600 600 /* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */ 601 601 __( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s.' ), 602 phpversion(),602 PHP_VERSION, 603 603 $requires_php 604 604 ); -
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 } -
trunk/src/wp-admin/includes/class-wp-debug-data.php
r53011 r53426 678 678 } 679 679 680 if ( function_exists( 'phpversion' ) ) { 681 $php_version_debug = phpversion(); 682 // Whether PHP supports 64-bit. 683 $php64bit = ( PHP_INT_SIZE * 8 === 64 ); 684 685 $php_version = sprintf( 686 '%s %s', 687 $php_version_debug, 688 ( $php64bit ? __( '(Supports 64bit values)' ) : __( '(Does not support 64bit values)' ) ) 689 ); 690 691 if ( $php64bit ) { 692 $php_version_debug .= ' 64bit'; 693 } 694 } else { 695 $php_version = __( 'Unable to determine PHP version' ); 696 $php_version_debug = 'unknown'; 680 $php_version_debug = PHP_VERSION; 681 // Whether PHP supports 64-bit. 682 $php64bit = ( PHP_INT_SIZE * 8 === 64 ); 683 684 $php_version = sprintf( 685 '%s %s', 686 $php_version_debug, 687 ( $php64bit ? __( '(Supports 64bit values)' ) : __( '(Does not support 64bit values)' ) ) 688 ); 689 690 if ( $php64bit ) { 691 $php_version_debug .= ' 64bit'; 697 692 } 698 693 -
trunk/src/wp-admin/includes/file.php
r53060 r53426 1386 1386 ), 1387 1387 array( 1388 'php' => phpversion(),1388 'php' => PHP_VERSION, 1389 1389 'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ), 1390 1390 ) … … 1421 1421 ), 1422 1422 array( 1423 'php' => phpversion(),1423 'php' => PHP_VERSION, 1424 1424 'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ), 1425 1425 'polyfill_is_fast' => false, … … 1494 1494 'skipped_key' => $skipped_key, 1495 1495 'skipped_sig' => $skipped_signature, 1496 'php' => phpversion(),1496 'php' => PHP_VERSION, 1497 1497 'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ), 1498 1498 ) -
trunk/src/wp-admin/includes/misc.php
r53146 r53426 1525 1525 */ 1526 1526 function wp_check_php_version() { 1527 $version = phpversion();1527 $version = PHP_VERSION; 1528 1528 $key = md5( $version ); 1529 1529 -
trunk/src/wp-admin/includes/plugin.php
r53264 r53426 1151 1151 _x( '<strong>Error:</strong> Current versions of WordPress (%1$s) and PHP (%2$s) do not meet minimum requirements for %3$s. The plugin requires WordPress %4$s and PHP %5$s.', 'plugin' ), 1152 1152 get_bloginfo( 'version' ), 1153 phpversion(),1153 PHP_VERSION, 1154 1154 $plugin_headers['Name'], 1155 1155 $requirements['requires'], … … 1163 1163 /* translators: 1: Current PHP version, 2: Plugin name, 3: Required PHP version. */ 1164 1164 _x( '<strong>Error:</strong> Current PHP version (%1$s) does not meet minimum requirements for %2$s. The plugin requires PHP %3$s.', 'plugin' ), 1165 phpversion(),1165 PHP_VERSION, 1166 1166 $plugin_headers['Name'], 1167 1167 $requirements['requires_php'] -
trunk/src/wp-admin/includes/update-core.php
r53132 r53426 1013 1013 $wp_filesystem->delete( $versions_file ); 1014 1014 1015 $php_version = phpversion();1015 $php_version = PHP_VERSION; 1016 1016 $mysql_version = $wpdb->db_version(); 1017 1017 $old_wp_version = $GLOBALS['wp_version']; // The version of WordPress we're updating from. -
trunk/src/wp-admin/install.php
r53111 r53426 229 229 global $wp_version, $required_php_version, $required_mysql_version; 230 230 231 $php_version = phpversion();231 $php_version = PHP_VERSION; 232 232 $mysql_version = $wpdb->db_version(); 233 233 $php_compat = version_compare( $php_version, $required_php_version, '>=' ); -
trunk/src/wp-admin/update-core.php
r52978 r53426 60 60 $message = ''; 61 61 $form_action = 'update-core.php?action=do-core-upgrade'; 62 $php_version = phpversion();62 $php_version = PHP_VERSION; 63 63 $mysql_version = $wpdb->db_version(); 64 64 $show_buttons = true; -
trunk/src/wp-admin/upgrade.php
r53131 r53426 45 45 $step = (int) $step; 46 46 47 $php_version = phpversion();47 $php_version = PHP_VERSION; 48 48 $mysql_version = $wpdb->db_version(); 49 49 $php_compat = version_compare( $php_version, $required_php_version, '>=' ); -
trunk/src/wp-cron.php
r53300 r53426 20 20 21 21 /* Don't make the request block till we finish, if possible. */ 22 if ( function_exists( 'fastcgi_finish_request' ) && version_compare( phpversion(), '7.0.16', '>=' ) ) {22 if ( PHP_VERSION_ID >= 70016 && function_exists( 'fastcgi_finish_request' ) ) { 23 23 if ( ! headers_sent() ) { 24 24 header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); -
trunk/src/wp-includes/functions.php
r53372 r53426 8423 8423 */ 8424 8424 function is_php_version_compatible( $required ) { 8425 return empty( $required ) || version_compare( phpversion(), $required, '>=' );8425 return empty( $required ) || version_compare( PHP_VERSION, $required, '>=' ); 8426 8426 } 8427 8427 -
trunk/src/wp-includes/load.php
r53060 r53426 144 144 function wp_check_php_mysql_versions() { 145 145 global $required_php_version, $wp_version; 146 $php_version = phpversion();146 $php_version = PHP_VERSION; 147 147 148 148 if ( version_compare( $required_php_version, $php_version, '>' ) ) { -
trunk/src/wp-includes/update.php
r53011 r53426 33 33 // Include an unmodified $wp_version. 34 34 require ABSPATH . WPINC . '/version.php'; 35 $php_version = phpversion();35 $php_version = PHP_VERSION; 36 36 37 37 $current = get_site_transient( 'update_core' ); -
trunk/tests/phpunit/tests/functions/isPhpVersionCompatible.php
r53237 r53426 28 28 */ 29 29 public function data_is_php_version_compatible() { 30 $php_version = phpversion();30 $php_version = PHP_VERSION; 31 31 32 32 $version_parts = explode( '.', $php_version ); -
trunk/tests/phpunit/tests/load/wpIsIniValueChangeable.php
r52010 r53426 41 41 ); 42 42 43 if ( extension_loaded( 'Tidy' ) && version_compare( PHP_VERSION, '7.0.0', '>' ) ) {43 if ( PHP_VERSION_ID > 70000 && extension_loaded( 'Tidy' ) ) { 44 44 $array[] = array( 'tidy.clean_output', true ); // PHP_INI_USER. 45 45 }
Note: See TracChangeset
for help on using the changeset viewer.