Make WordPress Core

Ticket #58831: 58831-add-missing-global-wpdb.patch

File 58831-add-missing-global-wpdb.patch, 472 bytes (added by viralsampat, 11 months ago)
  • src/wp-admin/setup-config.php

    diff --git src/wp-admin/setup-config.php src/wp-admin/setup-config.php
    index ddcb4943c7..b39c4458cd 100644
    if ( ! empty( $_REQUEST['language'] ) ) { 
    123123        $language = $GLOBALS['wp_local_package'];
    124124}
    125125
     126/**
     127 * @global wpdb $wpdb WordPress database abstraction object.
     128 */
     129global $wpdb;
     130
    126131switch ( $step ) {
    127132        case -1:
    128133                if ( wp_can_install_language_pack() && empty( $language ) ) {