From a68f2da09a79e80d3ea8a6322cc0b2e0542b4bbc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 3 Nov 2022 13:38:17 +0000 Subject: [PATCH] Docs: Document the usage of globals in `upgrade_550()` and `upgrade_560()`. Follow-up to [47597], [48400], [49572], [49632]. Props upadalavipul. Fixes #56983. Built from https://develop.svn.wordpress.org/trunk@54748 git-svn-id: http://core.svn.wordpress.org/trunk@54300 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 5 +++++ wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 802269e047..94d9d335f3 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -2160,6 +2160,8 @@ function upgrade_530() { * * @ignore * @since 5.5.0 + * + * @global int $wp_current_db_version The old (current) database version. */ function upgrade_550() { global $wp_current_db_version; @@ -2198,6 +2200,9 @@ function upgrade_550() { * * @ignore * @since 5.6.0 + * + * @global int $wp_current_db_version The old (current) database version. + * @global wpdb $wpdb WordPress database abstraction object. */ function upgrade_560() { global $wp_current_db_version, $wpdb; diff --git a/wp-includes/version.php b/wp-includes/version.php index f1725b7c60..2e31f0ffed 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54747'; +$wp_version = '6.2-alpha-54748'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.