Code Modernization: Replace phpversion() function calls with PHP_VERSION constant.
`phpversion()` return value and `PHP_VERSION` constant value are identical, but the latter is several times faster because it is a direct constant value lookup compared to a function call. Props ayeshrajans, jrf, mukesh27, costdev, hellofromTonya, SergeyBiryukov. Fixes #55680. Built from https://develop.svn.wordpress.org/trunk@53426 git-svn-id: http://core.svn.wordpress.org/trunk@53015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -59,7 +59,7 @@ function list_core_update( $update ) {
|
||||
|
||||
$message = '';
|
||||
$form_action = 'update-core.php?action=do-core-upgrade';
|
||||
$php_version = phpversion();
|
||||
$php_version = PHP_VERSION;
|
||||
$mysql_version = $wpdb->db_version();
|
||||
$show_buttons = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user