equal
deleted
inserted
replaced
30 |
30 |
31 // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php. |
31 // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php. |
32 @ini_set( 'magic_quotes_runtime', 0 ); |
32 @ini_set( 'magic_quotes_runtime', 0 ); |
33 @ini_set( 'magic_quotes_sybase', 0 ); |
33 @ini_set( 'magic_quotes_sybase', 0 ); |
34 |
34 |
35 // Set default timezone in PHP 5. |
35 // WordPress calculates offsets from UTC. |
36 if ( function_exists( 'date_default_timezone_set' ) ) |
36 date_default_timezone_set( 'UTC' ); |
37 date_default_timezone_set( 'UTC' ); |
|
38 |
37 |
39 // Turn register_globals off. |
38 // Turn register_globals off. |
40 wp_unregister_GLOBALS(); |
39 wp_unregister_GLOBALS(); |
41 |
|
42 // Ensure these global variables do not exist so they do not interfere with WordPress. |
|
43 unset( $wp_filter, $cache_lastcommentmodified ); |
|
44 |
40 |
45 // Standardize $_SERVER variables across setups. |
41 // Standardize $_SERVER variables across setups. |
46 wp_fix_server_vars(); |
42 wp_fix_server_vars(); |
47 |
43 |
48 // Check if we have received a request due to missing favicon.ico |
44 // Check if we have received a request due to missing favicon.ico |
136 require( ABSPATH . WPINC . '/script-loader.php' ); |
132 require( ABSPATH . WPINC . '/script-loader.php' ); |
137 require( ABSPATH . WPINC . '/taxonomy.php' ); |
133 require( ABSPATH . WPINC . '/taxonomy.php' ); |
138 require( ABSPATH . WPINC . '/update.php' ); |
134 require( ABSPATH . WPINC . '/update.php' ); |
139 require( ABSPATH . WPINC . '/canonical.php' ); |
135 require( ABSPATH . WPINC . '/canonical.php' ); |
140 require( ABSPATH . WPINC . '/shortcodes.php' ); |
136 require( ABSPATH . WPINC . '/shortcodes.php' ); |
|
137 require( ABSPATH . WPINC . '/class-wp-embed.php' ); |
141 require( ABSPATH . WPINC . '/media.php' ); |
138 require( ABSPATH . WPINC . '/media.php' ); |
142 require( ABSPATH . WPINC . '/http.php' ); |
139 require( ABSPATH . WPINC . '/http.php' ); |
143 require( ABSPATH . WPINC . '/class-http.php' ); |
140 require( ABSPATH . WPINC . '/class-http.php' ); |
144 require( ABSPATH . WPINC . '/widgets.php' ); |
141 require( ABSPATH . WPINC . '/widgets.php' ); |
145 require( ABSPATH . WPINC . '/nav-menu.php' ); |
142 require( ABSPATH . WPINC . '/nav-menu.php' ); |
230 * Holds the reference to @see $wp_the_query |
227 * Holds the reference to @see $wp_the_query |
231 * Use this global for WordPress queries |
228 * Use this global for WordPress queries |
232 * @global object $wp_query |
229 * @global object $wp_query |
233 * @since 1.5.0 |
230 * @since 1.5.0 |
234 */ |
231 */ |
235 $wp_query =& $wp_the_query; |
232 $wp_query = $wp_the_query; |
236 |
233 |
237 /** |
234 /** |
238 * Holds the WordPress Rewrite object for creating pretty URLs |
235 * Holds the WordPress Rewrite object for creating pretty URLs |
239 * @global object $wp_rewrite |
236 * @global object $wp_rewrite |
240 * @since 1.5.0 |
237 * @since 1.5.0 |
252 * WordPress Widget Factory Object |
249 * WordPress Widget Factory Object |
253 * @global object $wp_widget_factory |
250 * @global object $wp_widget_factory |
254 * @since 2.8.0 |
251 * @since 2.8.0 |
255 */ |
252 */ |
256 $GLOBALS['wp_widget_factory'] = new WP_Widget_Factory(); |
253 $GLOBALS['wp_widget_factory'] = new WP_Widget_Factory(); |
|
254 |
|
255 /** |
|
256 * WordPress User Roles |
|
257 * @global object $wp_roles |
|
258 * @since 2.0.0 |
|
259 */ |
|
260 $GLOBALS['wp_roles'] = new WP_Roles(); |
257 |
261 |
258 do_action( 'setup_theme' ); |
262 do_action( 'setup_theme' ); |
259 |
263 |
260 // Define the template related constants. |
264 // Define the template related constants. |
261 wp_templating_constants( ); |
265 wp_templating_constants( ); |