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
This commit is contained in:
Sergey Biryukov 2022-11-03 13:38:17 +00:00
parent 97468065ef
commit a68f2da09a
2 changed files with 6 additions and 1 deletions

View File

@ -2160,6 +2160,8 @@ function upgrade_530() {
* *
* @ignore * @ignore
* @since 5.5.0 * @since 5.5.0
*
* @global int $wp_current_db_version The old (current) database version.
*/ */
function upgrade_550() { function upgrade_550() {
global $wp_current_db_version; global $wp_current_db_version;
@ -2198,6 +2200,9 @@ function upgrade_550() {
* *
* @ignore * @ignore
* @since 5.6.0 * @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() { function upgrade_560() {
global $wp_current_db_version, $wpdb; global $wp_current_db_version, $wpdb;

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.