PluginProbe
Plugin Detective – Troubleshooting Conflicts / 1.1.6
Plugin Detective – Troubleshooting Conflicts v1.1.6
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.6, at troubleshoot/includes/class-settings.php

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