WordPress.org

Make WordPress Core

Ticket #17749: 17749.diff

File 17749.diff, 469 bytes (added by scribu, 3 years ago)

explicitly globalize wp_locale

  • wp-settings.php

    diff --git wp-settings.php wp-settings.php
    index d003424..6c5346f 100644
    require( ABSPATH . WPINC . '/locale.php' ); 
    275275 * @global object $wp_locale 
    276276 * @since 2.1.0 
    277277 */ 
    278 $wp_locale = new WP_Locale(); 
     278$GLOBALS['wp_locale'] = new WP_Locale(); 
    279279 
    280280// Load the functions for the active theme, for both parent and child theme if applicable. 
    281281if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) {