From 6619429fc31b00248aedd7f36feb4024cc24ab69 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 27 Jun 2023 05:11:27 +0000 Subject: [PATCH] Upgrade/Install: Pass the full database version string to WordPress.org for parsing. This aims to make the provided statistical data more complete, by correctly identifying the version for a wider selection of database types and servers. Props mukesh27, costdev, spacedmonkey, johnbillion. Fixes #58584. Built from https://develop.svn.wordpress.org/trunk@56050 git-svn-id: http://core.svn.wordpress.org/trunk@55562 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/update.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index 8e5302afab..1d2f55fbef 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -74,7 +74,9 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) { $current->last_checked = time(); set_site_transient( 'update_core', $current ); - if ( method_exists( $wpdb, 'db_version' ) ) { + if ( method_exists( $wpdb, 'db_server_info' ) ) { + $mysql_version = $wpdb->db_server_info(); + } elseif ( method_exists( $wpdb, 'db_version' ) ) { $mysql_version = preg_replace( '/[^0-9.].*/', '', $wpdb->db_version() ); } else { $mysql_version = 'N/A'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 14ad822476..2e8a5215a6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-56049'; +$wp_version = '6.3-alpha-56050'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.