Changeset 42343 for trunk/src/wp-settings.php
- Timestamp:
- 11/30/2017 11:09:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-settings.php
r42201 r42343 46 46 // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php. 47 47 @ini_set( 'magic_quotes_runtime', 0 ); 48 @ini_set( 'magic_quotes_sybase', 48 @ini_set( 'magic_quotes_sybase', 0 ); 49 49 50 50 // WordPress calculates offsets from UTC. … … 129 129 130 130 // Stop most of WordPress from being loaded if we just want the basics. 131 if ( SHORTINIT ) 131 if ( SHORTINIT ) { 132 132 return false; 133 } 133 134 134 135 // Load the L10n library. … … 278 279 do_action( 'muplugins_loaded' ); 279 280 280 if ( is_multisite() ) 281 ms_cookie_constants( ); 281 if ( is_multisite() ) { 282 ms_cookie_constants(); 283 } 282 284 283 285 // Define constants after multisite is loaded. … … 315 317 316 318 // Run wp_cache_postload() if object cache is enabled and the function exists. 317 if ( WP_CACHE && function_exists( 'wp_cache_postload' ) ) 319 if ( WP_CACHE && function_exists( 'wp_cache_postload' ) ) { 318 320 wp_cache_postload(); 321 } 319 322 320 323 /** … … 342 345 /** 343 346 * WordPress Query object 347 * 344 348 * @global WP_Query $wp_the_query 345 349 * @since 2.0.0 … … 350 354 * Holds the reference to @see $wp_the_query 351 355 * Use this global for WordPress queries 356 * 352 357 * @global WP_Query $wp_query 353 358 * @since 1.5.0 … … 357 362 /** 358 363 * Holds the WordPress Rewrite object for creating pretty URLs 364 * 359 365 * @global WP_Rewrite $wp_rewrite 360 366 * @since 1.5.0 … … 364 370 /** 365 371 * WordPress Object 372 * 366 373 * @global WP $wp 367 374 * @since 2.0.0 … … 371 378 /** 372 379 * WordPress Widget Factory Object 380 * 373 381 * @global WP_Widget_Factory $wp_widget_factory 374 382 * @since 2.8.0 … … 378 386 /** 379 387 * WordPress User Roles 388 * 380 389 * @global WP_Roles $wp_roles 381 390 * @since 2.0.0 … … 391 400 392 401 // Define the template related constants. 393 wp_templating_constants( 402 wp_templating_constants(); 394 403 395 404 // Load the default text localization domain. 396 405 load_default_textdomain(); 397 406 398 $locale = get_locale();407 $locale = get_locale(); 399 408 $locale_file = WP_LANG_DIR . "/$locale.php"; 400 if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) 409 if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) { 401 410 require( $locale_file ); 411 } 402 412 unset( $locale_file ); 403 413 404 414 /** 405 415 * WordPress Locale object for loading locale domain date and various strings. 416 * 406 417 * @global WP_Locale $wp_locale 407 418 * @since 2.1.0 … … 421 432 // Load the functions for the active theme, for both parent and child theme if applicable. 422 433 if ( ! wp_installing() || 'wp-activate.php' === $pagenow ) { 423 if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) ) 434 if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) ) { 424 435 include( STYLESHEETPATH . '/functions.php' ); 425 if ( file_exists( TEMPLATEPATH . '/functions.php' ) ) 436 } 437 if ( file_exists( TEMPLATEPATH . '/functions.php' ) ) { 426 438 include( TEMPLATEPATH . '/functions.php' ); 439 } 427 440 } 428 441 … … 456 469 die(); 457 470 } 458 unset( $file);471 unset( $file ); 459 472 } 460 473
Note: See TracChangeset
for help on using the changeset viewer.