Make WordPress Core


Ignore:
Timestamp:
08/11/2011 04:45:14 AM (13 years ago)
Author:
nbachiyski
Message:

Explicitly globalize some variables, so that unit tests can run WordPress inside a function. Fixes #17749

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r18450 r18532  
    104104// Run the installer if WordPress is not installed.
    105105wp_not_installed();
     106
    106107
    107108// Load most of WordPress.
     
    250251 * @since 2.8.0
    251252 */
    252 $wp_widget_factory = new WP_Widget_Factory();
     253$GLOBALS['wp_widget_factory'] = new WP_Widget_Factory();
    253254
    254255do_action( 'setup_theme' );
Note: See TracChangeset for help on using the changeset viewer.