~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-settings.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
// Include files required for initialization.
21
21
require( ABSPATH . WPINC . '/load.php' );
22
22
require( ABSPATH . WPINC . '/default-constants.php' );
 
23
require( ABSPATH . WPINC . '/plugin.php' );
23
24
 
24
25
/*
25
26
 * These can't be directly globalized in version.php. When updating,
69
70
// Check if we're in WP_DEBUG mode.
70
71
wp_debug_mode();
71
72
 
 
73
/**
 
74
 * Filters whether to enable loading of the advanced-cache.php drop-in.
 
75
 *
 
76
 * This filter runs before it can be used by plugins. It is designed for non-web
 
77
 * run-times. If false is returned, advanced-cache.php will never be loaded.
 
78
 *
 
79
 * @since 4.6.0
 
80
 *
 
81
 * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present).
 
82
 *                                    Default true.
 
83
 */
 
84
if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) {
72
85
// For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
73
 
if ( WP_CACHE )
74
86
        WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
 
87
}
75
88
 
76
89
// Define WP_LANG_DIR if not set.
77
90
wp_set_lang_dir();
81
94
require( ABSPATH . WPINC . '/functions.php' );
82
95
require( ABSPATH . WPINC . '/class-wp.php' );
83
96
require( ABSPATH . WPINC . '/class-wp-error.php' );
84
 
require( ABSPATH . WPINC . '/plugin.php' );
85
97
require( ABSPATH . WPINC . '/pomo/mo.php' );
86
98
 
87
99
// Include the wpdb class and, if present, a db.php database drop-in.
 
100
global $wpdb;
88
101
require_wp_db();
89
102
 
90
103
// Set the database table prefix and the format specifiers for database table columns.
99
112
 
100
113
// Initialize multisite if enabled.
101
114
if ( is_multisite() ) {
 
115
        require( ABSPATH . WPINC . '/class-wp-site-query.php' );
 
116
        require( ABSPATH . WPINC . '/class-wp-network-query.php' );
102
117
        require( ABSPATH . WPINC . '/ms-blogs.php' );
103
118
        require( ABSPATH . WPINC . '/ms-settings.php' );
104
119
} elseif ( ! defined( 'MULTISITE' ) ) {
142
157
require( ABSPATH . WPINC . '/post.php' );
143
158
require( ABSPATH . WPINC . '/class-walker-page.php' );
144
159
require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
 
160
require( ABSPATH . WPINC . '/class-wp-post-type.php' );
145
161
require( ABSPATH . WPINC . '/class-wp-post.php' );
146
162
require( ABSPATH . WPINC . '/post-template.php' );
147
163
require( ABSPATH . WPINC . '/revision.php' );
167
183
require( ABSPATH . WPINC . '/script-loader.php' );
168
184
require( ABSPATH . WPINC . '/taxonomy.php' );
169
185
require( ABSPATH . WPINC . '/class-wp-term.php' );
 
186
require( ABSPATH . WPINC . '/class-wp-term-query.php' );
170
187
require( ABSPATH . WPINC . '/class-wp-tax-query.php' );
171
188
require( ABSPATH . WPINC . '/update.php' );
172
189
require( ABSPATH . WPINC . '/canonical.php' );
183
200
require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );
184
201
require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );
185
202
require( ABSPATH . WPINC . '/class-wp-http-response.php' );
 
203
require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );
186
204
require( ABSPATH . WPINC . '/widgets.php' );
187
205
require( ABSPATH . WPINC . '/class-wp-widget.php' );
188
206
require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
383
401
 * Fires after WordPress has finished loading but before any headers are sent.
384
402
 *
385
403
 * Most of WP is loaded at this stage, and the user is authenticated. WP continues
386
 
 * to load on the init hook that follows (e.g. widgets), and many plugins instantiate
 
404
 * to load on the {@see 'init'} hook that follows (e.g. widgets), and many plugins instantiate
387
405
 * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
388
406
 *
389
 
 * If you wish to plug an action once WP is loaded, use the wp_loaded hook below.
 
407
 * If you wish to plug an action once WP is loaded, use the {@see 'wp_loaded'} hook below.
390
408
 *
391
409
 * @since 1.5.0
392
410
 */
404
422
/**
405
423
 * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
406
424
 *
407
 
 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
 
425
 * Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
408
426
 * users not logged in.
409
427
 *
410
428
 * @link https://codex.wordpress.org/AJAX_in_Plugins