wp-settings.php
Lines:
1 to 100 of 673
<?php /** * Used to set up and fix common variables and include * the WordPress procedural and class library. * * Allows for some configuration in wp-config.php (see default-constants.php) * * @package WordPress */ /** * Stores the location of the WordPress directory of functions, classes, and core content. * * @since 1.0.0 */ define( 'WPINC', 'wp-includes' ); /** * Version information for the current WordPress release. * * These can't be directly globalized in version.php. When updating, * include version.php from another installation and don't override * these values if already set. * * @global string $wp_version The WordPress version string. * @global int $wp_db_version WordPress database version. * @global string $tinymce_version TinyMCE version. * @global string $required_php_version The required PHP version string. * @global string $required_mysql_version The required MySQL version string. * @global string $wp_local_package Locale code of the package. */ global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package; require ABSPATH . WPINC . '/version.php'; require ABSPATH . WPINC . '/load.php'; // Check for the required PHP version and for the MySQL extension or a database drop-in. wp_check_php_mysql_versions(); // Include files required for initialization. require ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php'; require ABSPATH . WPINC . '/class-wp-fatal-error-handler.php'; require ABSPATH . WPINC . '/class-wp-recovery-mode-cookie-service.php'; require ABSPATH . WPINC . '/class-wp-recovery-mode-key-service.php'; require ABSPATH . WPINC . '/class-wp-recovery-mode-link-service.php'; require ABSPATH . WPINC . '/class-wp-recovery-mode-email-service.php'; require ABSPATH . WPINC . '/class-wp-recovery-mode.php'; require ABSPATH . WPINC . '/error-protection.php'; require ABSPATH . WPINC . '/default-constants.php'; require_once ABSPATH . WPINC . '/plugin.php'; /** * If not already configured, `$blog_id` will default to 1 in a single site * configuration. In multisite, it will be overridden by default in ms-settings.php. * * @global int $blog_id * @since 2.0.0 */ global $blog_id; // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, SCRIPT_DEBUG, WP_CONTENT_DIR and WP_CACHE. wp_initial_constants(); // Register the shutdown handler for fatal errors as soon as possible. wp_register_fatal_error_handler(); // WordPress calculates offsets from UTC. // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set date_default_timezone_set( 'UTC' ); // Standardize $_SERVER variables across setups. wp_fix_server_vars(); // Check if the site is in maintenance mode. wp_maintenance(); // Start loading timer. timer_start(); // Check if WP_DEBUG mode is enabled. wp_debug_mode(); /** * Filters whether to enable loading of the advanced-cache.php drop-in. * * This filter runs before it can be used by plugins. It is designed for non-web * run-times. If false is returned, advanced-cache.php will never be loaded. * * @since 4.6.0 * * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present). * Default true. */ if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) && file_exists( WP_CONTENT_DIR . '/advanced-cache.php' ) ) { // For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
Called by
Invoked by
Calls
Call hooks
1 to 11 of 11