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
This commit is contained in:
parent
e4c45c53b7
commit
6619429fc3
|
@ -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';
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue