@ini_set( 'magic_quotes_runtime', 0 );
@ini_set( 'magic_quotes_sybase', 0 );
-// Set default timezone in PHP 5.
-if ( function_exists( 'date_default_timezone_set' ) )
- date_default_timezone_set( 'UTC' );
+// WordPress calculates offsets from UTC.
+date_default_timezone_set( 'UTC' );
// Turn register_globals off.
wp_unregister_GLOBALS();
-// Ensure these global variables do not exist so they do not interfere with WordPress.
-unset( $wp_filter, $cache_lastcommentmodified );
-
// Standardize $_SERVER variables across setups.
wp_fix_server_vars();
require( ABSPATH . WPINC . '/update.php' );
require( ABSPATH . WPINC . '/canonical.php' );
require( ABSPATH . WPINC . '/shortcodes.php' );
+require( ABSPATH . WPINC . '/class-wp-embed.php' );
require( ABSPATH . WPINC . '/media.php' );
require( ABSPATH . WPINC . '/http.php' );
require( ABSPATH . WPINC . '/class-http.php' );
* @global object $wp_query
* @since 1.5.0
*/
-$wp_query =& $wp_the_query;
+$wp_query = $wp_the_query;
/**
* Holds the WordPress Rewrite object for creating pretty URLs
*/
$GLOBALS['wp_widget_factory'] = new WP_Widget_Factory();
+/**
+ * WordPress User Roles
+ * @global object $wp_roles
+ * @since 2.0.0
+ */
+$GLOBALS['wp_roles'] = new WP_Roles();
+
do_action( 'setup_theme' );
// Define the template related constants.