PluginProbe
Plugin Detective – Troubleshooting Conflicts / 1.1.5
Plugin Detective – Troubleshooting Conflicts v1.1.5
1.2.35 1.2.33 1.2.32 1.2.31 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2 1.2.1 1.2.10 1.2.12 1.2.13 1.2.14 1.2.16 1.2.19 1.2.20 1.2.22 1.2.23 1.2.24 All 54 releases
plugin-detective / troubleshoot / includes / class-settings.php

class-settings.php in Plugin Detective – Troubleshooting Conflicts 1.1.5, at troubleshoot/includes/class-settings.php

567 lines 19.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Troubleshoot Settings.
4 *
5 * @since 0.0.0
6 * @package Troubleshoot
7 */
8
9 /**
10 * Troubleshoot Settings.
11 *
12 * @since 0.0.0
13 */
14 class PDT_Settings {
15 /**
16 * Parent plugin class.
17 *
18 * @since 0.0.0
19 *
20 * @var Troubleshoot
21 */
22 protected $plugin = null;
23
24 /**
25 * Constructor.
26 *
27 * @since 0.0.0
28 *
29 * @param Troubleshoot $plugin Main plugin object.
30 */
31 public function __construct( $plugin ) {
32 $this->plugin = $plugin;
33 $this->hooks();
34 }
35
36 /**
37 * Initiate our hooks.
38 *
39 * @since 0.0.0
40 */
41 public function hooks() {
42
43 }
44 }
45
46 /**
47 * Used to set up and fix common variables and include
48 * the WordPress procedural and class library.
49 *
50 * Allows for some configuration in wp-config.php (see default-constants.php)
51 *
52 * @package WordPress
53 */
54
55 /**
56 * Stores the location of the WordPress directory of functions, classes, and core content.
57 *
58 * @since 1.0.0
59 */
60 define( 'WPINC', 'wp-includes' );
61
62 // Include files required for initialization.
63 require( ABSPATH . WPINC . '/load.php' );
64 require( ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php' );
65 require( ABSPATH . WPINC . '/class-wp-fatal-error-handler.php' );
66 require( ABSPATH . WPINC . '/class-wp-recovery-mode-cookie-service.php' );
67 require( ABSPATH . WPINC . '/class-wp-recovery-mode-key-service.php' );
68 require( ABSPATH . WPINC . '/class-wp-recovery-mode-link-service.php' );
69 require( ABSPATH . WPINC . '/class-wp-recovery-mode-email-service.php' );
70 require( ABSPATH . WPINC . '/class-wp-recovery-mode.php' );
71 require( ABSPATH . WPINC . '/error-protection.php' );
72 require( ABSPATH . WPINC . '/default-constants.php' );
73 require_once( ABSPATH . WPINC . '/plugin.php' );
74
75 /*
76 * These can't be directly globalized in version.php. When updating,
77 * we're including version.php from another installation and don't want
78 * these values to be overridden if already set.
79 */
80 global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package;
81 require( ABSPATH . WPINC . '/version.php' );
82
83 /**
84 * If not already configured, `$blog_id` will default to 1 in a single site
85 * configuration. In multisite, it will be overridden by default in ms-settings.php.
86 *
87 * @global int $blog_id
88 * @since 2.0.0
89 */
90 global $blog_id;
91 global $table_prefix;
92
93 // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, SCRIPT_DEBUG, WP_CONTENT_DIR and WP_CACHE.
94 wp_initial_constants();
95
96 // Make sure we register the shutdown handler for fatal errors as soon as possible.
97 wp_register_fatal_error_handler();
98
99 // Check for the required PHP version and for the MySQL extension or a database drop-in.
100 wp_check_php_mysql_versions();
101
102 // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
103 @ini_set( 'magic_quotes_runtime', 0 );
104 @ini_set( 'magic_quotes_sybase', 0 );
105
106 // WordPress calculates offsets from UTC.
107 date_default_timezone_set( 'UTC' );
108
109 // Turn register_globals off.
110 wp_unregister_GLOBALS();
111
112 // Standardize $_SERVER variables across setups.
113 wp_fix_server_vars();
114
115 // Check if we have received a request due to missing favicon.ico
116 wp_favicon_request();
117
118 // Check if we're in maintenance mode.
119 // wp_maintenance();
120
121 // Start loading timer.
122 timer_start();
123
124 // Check if we're in WP_DEBUG mode.
125 wp_debug_mode();
126
127 /**
128 * Filters whether to enable loading of the advanced-cache.php drop-in.
129 *
130 * This filter runs before it can be used by plugins. It is designed for non-web
131 * run-times. If false is returned, advanced-cache.php will never be loaded.
132 *
133 * @since 4.6.0
134 *
135 * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present).
136 * Default true.
137 */
138
139 /* PD: Start cache disable */
140 // if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) {
141 // For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
142 // WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
143 // Re-initialize any hooks added manually by advanced-cache.php
144 // if ( $wp_filter ) {
145 // $wp_filter = WP_Hook::build_preinitialized_hooks( $wp_filter );
146 // }
147 /* PD: End cache disable */
148
149
150
151 // Define WP_LANG_DIR if not set.
152 wp_set_lang_dir();
153
154 // Load early WordPress files.
155 require( ABSPATH . WPINC . '/compat.php' );
156 require( ABSPATH . WPINC . '/class-wp-list-util.php' );
157 require( ABSPATH . WPINC . '/functions.php' );
158 require( ABSPATH . WPINC . '/class-wp-matchesmapregex.php' );
159 require( ABSPATH . WPINC . '/class-wp.php' );
160 require( ABSPATH . WPINC . '/class-wp-error.php' );
161 require( ABSPATH . WPINC . '/pomo/mo.php' );
162
163 // Include the wpdb class and, if present, a db.php database drop-in.
164 global $wpdb;
165 require_wp_db();
166 // Set the database table prefix and the format specifiers for database table columns.
167 $GLOBALS['table_prefix'] = $table_prefix;
168 wp_set_wpdb_vars();
169
170 // Start the WordPress object cache, or an external object cache if the drop-in is present.
171 wp_start_object_cache();
172
173 // Attach the default filters.
174 require( ABSPATH . WPINC . '/default-filters.php' );
175
176 // Initialize multisite if enabled.
177 if ( is_multisite() ) {
178 require( ABSPATH . WPINC . '/class-wp-site-query.php' );
179 require( ABSPATH . WPINC . '/class-wp-network-query.php' );
180 require( ABSPATH . WPINC . '/ms-blogs.php' );
181 require( ABSPATH . WPINC . '/ms-settings.php' );
182 } elseif ( ! defined( 'MULTISITE' ) ) {
183 define( 'MULTISITE', false );
184 }
185
186 register_shutdown_function( 'shutdown_action_hook' );
187
188 // Stop most of WordPress from being loaded if we just want the basics.
189 if ( SHORTINIT )
190 return false;
191
192 // Load the L10n library.
193 require_once( ABSPATH . WPINC . '/l10n.php' );
194 require_once( ABSPATH . WPINC . '/class-wp-locale.php' );
195 require_once( ABSPATH . WPINC . '/class-wp-locale-switcher.php' );
196
197 // Run the installer if WordPress is not installed.
198 /* PD: Start wp_not_installed() disable */
199
200 // wp_not_installed();
201
202 /* PD: End wp_not_installed() disable */
203
204
205 // Load most of WordPress.
206 require( ABSPATH . WPINC . '/class-wp-walker.php' );
207 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );
208 require( ABSPATH . WPINC . '/formatting.php' );
209 require( ABSPATH . WPINC . '/capabilities.php' );
210 require( ABSPATH . WPINC . '/class-wp-roles.php' );
211 require( ABSPATH . WPINC . '/class-wp-role.php' );
212 require( ABSPATH . WPINC . '/class-wp-user.php' );
213 require( ABSPATH . WPINC . '/class-wp-query.php' );
214 require( ABSPATH . WPINC . '/query.php' );
215 require( ABSPATH . WPINC . '/date.php' );
216 require( ABSPATH . WPINC . '/theme.php' );
217 require( ABSPATH . WPINC . '/class-wp-theme.php' );
218 require( ABSPATH . WPINC . '/template.php' );
219 require( ABSPATH . WPINC . '/user.php' );
220 require( ABSPATH . WPINC . '/class-wp-user-query.php' );
221 require( ABSPATH . WPINC . '/class-wp-session-tokens.php' );
222 require( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' );
223 require( ABSPATH . WPINC . '/meta.php' );
224 require( ABSPATH . WPINC . '/class-wp-meta-query.php' );
225 require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );
226 require( ABSPATH . WPINC . '/general-template.php' );
227 require( ABSPATH . WPINC . '/link-template.php' );
228
229
230 require( ABSPATH . WPINC . '/author-template.php' );
231 require( ABSPATH . WPINC . '/post.php' );
232 require( ABSPATH . WPINC . '/class-walker-page.php' );
233 require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
234 require( ABSPATH . WPINC . '/class-wp-post-type.php' );
235 require( ABSPATH . WPINC . '/class-wp-post.php' );
236 require( ABSPATH . WPINC . '/post-template.php' );
237 require( ABSPATH . WPINC . '/revision.php' );
238 require( ABSPATH . WPINC . '/post-formats.php' );
239 require( ABSPATH . WPINC . '/post-thumbnail-template.php' );
240 require( ABSPATH . WPINC . '/category.php' );
241 require( ABSPATH . WPINC . '/class-walker-category.php' );
242 require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );
243 require( ABSPATH . WPINC . '/category-template.php' );
244 require( ABSPATH . WPINC . '/comment.php' );
245 require( ABSPATH . WPINC . '/class-wp-comment.php' );
246 require( ABSPATH . WPINC . '/class-wp-comment-query.php' );
247 require( ABSPATH . WPINC . '/class-walker-comment.php' );
248 require( ABSPATH . WPINC . '/comment-template.php' );
249 require( ABSPATH . WPINC . '/rewrite.php' );
250 require( ABSPATH . WPINC . '/class-wp-rewrite.php' );
251 require( ABSPATH . WPINC . '/feed.php' );
252 require( ABSPATH . WPINC . '/bookmark.php' );
253 require( ABSPATH . WPINC . '/bookmark-template.php' );
254 require( ABSPATH . WPINC . '/kses.php' );
255 require( ABSPATH . WPINC . '/cron.php' );
256 require( ABSPATH . WPINC . '/deprecated.php' );
257 require( ABSPATH . WPINC . '/script-loader.php' );
258 require( ABSPATH . WPINC . '/taxonomy.php' );
259 require( ABSPATH . WPINC . '/class-wp-taxonomy.php' );
260 require( ABSPATH . WPINC . '/class-wp-term.php' );
261 require( ABSPATH . WPINC . '/class-wp-term-query.php' );
262 require( ABSPATH . WPINC . '/class-wp-tax-query.php' );
263 require( ABSPATH . WPINC . '/update.php' );
264 require( ABSPATH . WPINC . '/canonical.php' );
265 require( ABSPATH . WPINC . '/shortcodes.php' );
266 require( ABSPATH . WPINC . '/embed.php' );
267 require( ABSPATH . WPINC . '/class-wp-embed.php' );
268 require( ABSPATH . WPINC . '/class-oembed.php' );
269 require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
270 require( ABSPATH . WPINC . '/media.php' );
271 require( ABSPATH . WPINC . '/http.php' );
272 require( ABSPATH . WPINC . '/class-http.php' );
273 require( ABSPATH . WPINC . '/class-wp-http-streams.php' );
274 require( ABSPATH . WPINC . '/class-wp-http-curl.php' );
275 require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );
276 require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );
277 require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );
278 require( ABSPATH . WPINC . '/class-wp-http-response.php' );
279 require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );
280 require( ABSPATH . WPINC . '/class-wp-http-requests-hooks.php' );
281 require( ABSPATH . WPINC . '/widgets.php' );
282 require( ABSPATH . WPINC . '/class-wp-widget.php' );
283 require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
284 require( ABSPATH . WPINC . '/nav-menu.php' );
285 require( ABSPATH . WPINC . '/nav-menu-template.php' );
286 require( ABSPATH . WPINC . '/admin-bar.php' );
287 require( ABSPATH . WPINC . '/rest-api.php' );
288 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );
289 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );
290 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );
291 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-controller.php' );
292 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-posts-controller.php' );
293 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-attachments-controller.php' );
294 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-types-controller.php' );
295 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-statuses-controller.php' );
296 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-revisions-controller.php' );
297 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-autosaves-controller.php' );
298 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-taxonomies-controller.php' );
299 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-terms-controller.php' );
300 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-users-controller.php' );
301 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-comments-controller.php' );
302 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-search-controller.php' );
303 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-blocks-controller.php' );
304 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-renderer-controller.php' );
305 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-settings-controller.php' );
306 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-themes-controller.php' );
307 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-meta-fields.php' );
308 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-comment-meta-fields.php' );
309 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-post-meta-fields.php' );
310 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-term-meta-fields.php' );
311 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-user-meta-fields.php' );
312 require( ABSPATH . WPINC . '/rest-api/search/class-wp-rest-search-handler.php' );
313 require( ABSPATH . WPINC . '/rest-api/search/class-wp-rest-post-search-handler.php' );
314 require( ABSPATH . WPINC . '/class-wp-block-type.php' );
315 require( ABSPATH . WPINC . '/class-wp-block-type-registry.php' );
316 require( ABSPATH . WPINC . '/class-wp-block-parser.php' );
317 require( ABSPATH . WPINC . '/blocks.php' );
318 require( ABSPATH . WPINC . '/blocks/archives.php' );
319 require( ABSPATH . WPINC . '/blocks/block.php' );
320 require( ABSPATH . WPINC . '/blocks/calendar.php' );
321 require( ABSPATH . WPINC . '/blocks/categories.php' );
322 require( ABSPATH . WPINC . '/blocks/latest-comments.php' );
323 require( ABSPATH . WPINC . '/blocks/latest-posts.php' );
324 require( ABSPATH . WPINC . '/blocks/rss.php' );
325 require( ABSPATH . WPINC . '/blocks/search.php' );
326 require( ABSPATH . WPINC . '/blocks/shortcode.php' );
327 require( ABSPATH . WPINC . '/blocks/tag-cloud.php' );
328
329 /* PD: Start bail out early */
330 // return;
331 /* PD: End bail out early */
332 $GLOBALS['wp_embed'] = new WP_Embed();
333
334 // Load multisite-specific files.
335 if ( is_multisite() ) {
336 require( ABSPATH . WPINC . '/ms-functions.php' );
337 require( ABSPATH . WPINC . '/ms-default-filters.php' );
338 require( ABSPATH . WPINC . '/ms-deprecated.php' );
339 }
340
341 // Define constants that rely on the API to obtain the default value.
342 // Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
343 wp_plugin_directory_constants();
344
345 $GLOBALS['wp_plugin_paths'] = array();
346
347 // Load must-use plugins.
348 foreach ( wp_get_mu_plugins() as $mu_plugin ) {
349 include_once( $mu_plugin );
350 }
351 unset( $mu_plugin );
352
353 // Load network activated plugins.
354 if ( is_multisite() ) {
355 foreach ( wp_get_active_network_plugins() as $network_plugin ) {
356 wp_register_plugin_realpath( $network_plugin );
357 include_once( $network_plugin );
358 }
359 unset( $network_plugin );
360 }
361
362 /**
363 * Fires once all must-use and network-activated plugins have loaded.
364 *
365 * @since 2.8.0
366 */
367 do_action( 'muplugins_loaded' );
368
369 if ( is_multisite() )
370 ms_cookie_constants( );
371
372 // Define constants after multisite is loaded.
373 wp_cookie_constants();
374
375 // Define and enforce our SSL constants
376 wp_ssl_constants();
377
378 // Create common globals.
379 require( ABSPATH . WPINC . '/vars.php' );
380
381 // Make taxonomies and posts available to plugins and themes.
382 // @plugin authors: warning: these get registered again on the init hook.
383 create_initial_taxonomies();
384 create_initial_post_types();
385
386 if ( function_exists( 'wp_start_scraping_edited_file_errors' ) ) {
387 wp_start_scraping_edited_file_errors();
388 }
389
390 // Register the default theme directory root
391 register_theme_directory( get_theme_root() );
392
393 /* PD: Start cache disable */
394
395 // Load active plugins.
396 // foreach ( wp_get_active_and_valid_plugins() as $plugin ) {
397 // wp_register_plugin_realpath( $plugin );
398 // include_once( $plugin );
399 // }
400 // unset( $plugin );
401
402 /* PD: End cache disable */
403
404 // Load pluggable functions.
405 require( ABSPATH . WPINC . '/pluggable.php' );
406 require( ABSPATH . WPINC . '/pluggable-deprecated.php' );
407
408 // Set internal encoding.
409 wp_set_internal_encoding();
410
411 // Run wp_cache_postload() if object cache is enabled and the function exists.
412 if ( WP_CACHE && function_exists( 'wp_cache_postload' ) )
413 wp_cache_postload();
414
415 /**
416 * Fires once activated plugins have loaded.
417 *
418 * Pluggable functions are also available at this point in the loading order.
419 *
420 * @since 1.5.0
421 */
422 do_action( 'plugins_loaded' );
423
424 // Define constants which affect functionality if not already defined.
425 wp_functionality_constants();
426
427 // Add magic quotes and set up $_REQUEST ( $_GET + $_POST )
428 wp_magic_quotes();
429
430 /**
431 * Fires when comment cookies are sanitized.
432 *
433 * @since 2.0.11
434 */
435 do_action( 'sanitize_comment_cookies' );
436
437 /**
438 * WordPress Query object
439 * @global WP_Query $wp_the_query
440 * @since 2.0.0
441 */
442 $GLOBALS['wp_the_query'] = new WP_Query();
443
444 /**
445 * Holds the reference to @see $wp_the_query
446 * Use this global for WordPress queries
447 * @global WP_Query $wp_query
448 * @since 1.5.0
449 */
450 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
451
452 /**
453 * Holds the WordPress Rewrite object for creating pretty URLs
454 * @global WP_Rewrite $wp_rewrite
455 * @since 1.5.0
456 */
457 $GLOBALS['wp_rewrite'] = new WP_Rewrite();
458
459 /**
460 * WordPress Object
461 * @global WP $wp
462 * @since 2.0.0
463 */
464 $GLOBALS['wp'] = new WP();
465
466 /**
467 * WordPress Widget Factory Object
468 * @global WP_Widget_Factory $wp_widget_factory
469 * @since 2.8.0
470 */
471 $GLOBALS['wp_widget_factory'] = new WP_Widget_Factory();
472
473 /**
474 * WordPress User Roles
475 * @global WP_Roles $wp_roles
476 * @since 2.0.0
477 */
478 $GLOBALS['wp_roles'] = new WP_Roles();
479
480 /**
481 * Fires before the theme is loaded.
482 *
483 * @since 2.6.0
484 */
485 do_action( 'setup_theme' );
486
487 // Define the template related constants.
488 wp_templating_constants( );
489
490 // Load the default text localization domain.
491 load_default_textdomain();
492
493 $locale = get_locale();
494 $locale_file = WP_LANG_DIR . "/$locale.php";
495 if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) )
496 require( $locale_file );
497 unset( $locale_file );
498
499 /**
500 * WordPress Locale object for loading locale domain date and various strings.
501 * @global WP_Locale $wp_locale
502 * @since 2.1.0
503 */
504 $GLOBALS['wp_locale'] = new WP_Locale();
505
506 /**
507 * WordPress Locale Switcher object for switching locales.
508 *
509 * @since 4.7.0
510 *
511 * @global WP_Locale_Switcher $wp_locale_switcher WordPress locale switcher object.
512 */
513 $GLOBALS['wp_locale_switcher'] = new WP_Locale_Switcher();
514 $GLOBALS['wp_locale_switcher']->init();
515
516 // Load the functions for the active theme, for both parent and child theme if applicable.
517 if ( ! wp_installing() || 'wp-activate.php' === $pagenow ) {
518 if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
519 include( STYLESHEETPATH . '/functions.php' );
520 if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
521 include( TEMPLATEPATH . '/functions.php' );
522 }
523
524 /**
525 * Fires after the theme is loaded.
526 *
527 * @since 3.0.0
528 */
529 do_action( 'after_setup_theme' );
530
531 // Set up current user.
532 $GLOBALS['wp']->init();
533
534 /**
535 * Fires after WordPress has finished loading but before any headers are sent.
536 *
537 * Most of WP is loaded at this stage, and the user is authenticated. WP continues
538 * to load on the {@see 'init'} hook that follows (e.g. widgets), and many plugins instantiate
539 * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
540 *
541 * If you wish to plug an action once WP is loaded, use the {@see 'wp_loaded'} hook below.
542 *
543 * @since 1.5.0
544 */
545 do_action( 'init' );
546
547 // Check site status
548 if ( is_multisite() ) {
549 if ( true !== ( $file = ms_site_check() ) ) {
550 require( $file );
551 die();
552 }
553 unset($file);
554 }
555
556 /**
557 * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
558 *
559 * Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
560 * users not logged in.
561 *
562 * @link https://codex.wordpress.org/AJAX_in_Plugins
563 *
564 * @since 3.0.0
565 */
566 do_action( 'wp_loaded' );
567