Make WordPress Core

Changeset 60103


Ignore:
Timestamp:
03/28/2025 04:28:58 PM (5 weeks ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Move $wp_db_version declaration to the top of wp-admin/network/upgrade.php.

Includes removing a duplicate DocBlock.

Follow-up to [12603], [25191], [60095].

See #63168.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/upgrade.php

    r60095 r60103  
    1212
    1313require_once ABSPATH . WPINC . '/http.php';
     14
     15/**
     16 * @global int $wp_db_version WordPress database version.
     17 */
     18global $wp_db_version;
    1419
    1520// Used in the HTML title tag.
     
    5055
    5156        if ( $n < 5 ) {
    52             /**
    53              * @global int $wp_db_version WordPress database version.
    54              */
    55             global $wp_db_version;
    5657            update_site_option( 'wpmu_upgrade_site', $wp_db_version );
    5758        }
     
    136137    case 'show':
    137138    default:
    138         /**
    139          * @global int $wp_db_version WordPress database version.
    140          */
    141         if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $GLOBALS['wp_db_version'] ) :
     139        if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $wp_db_version ) :
    142140            ?>
    143141        <h2><?php _e( 'Database Update Required' ); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.