Edit File by line
/home/barbar84/www
File: wp-settings.php
$locale_file = WP_LANG_DIR . "/$locale.php";
[500] Fix | Delete
if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) {
[501] Fix | Delete
require $locale_file;
[502] Fix | Delete
}
[503] Fix | Delete
unset( $locale_file );
[504] Fix | Delete
[505] Fix | Delete
/**
[506] Fix | Delete
* WordPress Locale object for loading locale domain date and various strings.
[507] Fix | Delete
*
[508] Fix | Delete
* @global WP_Locale $wp_locale WordPress date and time locale object.
[509] Fix | Delete
* @since 2.1.0
[510] Fix | Delete
*/
[511] Fix | Delete
$GLOBALS['wp_locale'] = new WP_Locale();
[512] Fix | Delete
[513] Fix | Delete
/**
[514] Fix | Delete
* WordPress Locale Switcher object for switching locales.
[515] Fix | Delete
*
[516] Fix | Delete
* @since 4.7.0
[517] Fix | Delete
*
[518] Fix | Delete
* @global WP_Locale_Switcher $wp_locale_switcher WordPress locale switcher object.
[519] Fix | Delete
*/
[520] Fix | Delete
$GLOBALS['wp_locale_switcher'] = new WP_Locale_Switcher();
[521] Fix | Delete
$GLOBALS['wp_locale_switcher']->init();
[522] Fix | Delete
[523] Fix | Delete
// Load the functions for the active theme, for both parent and child theme if applicable.
[524] Fix | Delete
foreach ( wp_get_active_and_valid_themes() as $theme ) {
[525] Fix | Delete
if ( file_exists( $theme . '/functions.php' ) ) {
[526] Fix | Delete
include $theme . '/functions.php';
[527] Fix | Delete
}
[528] Fix | Delete
}
[529] Fix | Delete
unset( $theme );
[530] Fix | Delete
[531] Fix | Delete
/**
[532] Fix | Delete
* Fires after the theme is loaded.
[533] Fix | Delete
*
[534] Fix | Delete
* @since 3.0.0
[535] Fix | Delete
*/
[536] Fix | Delete
do_action( 'after_setup_theme' );
[537] Fix | Delete
[538] Fix | Delete
// Create an instance of WP_Site_Health so that Cron events may fire.
[539] Fix | Delete
if ( ! class_exists( 'WP_Site_Health' ) ) {
[540] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
[541] Fix | Delete
}
[542] Fix | Delete
WP_Site_Health::get_instance();
[543] Fix | Delete
[544] Fix | Delete
// Set up current user.
[545] Fix | Delete
$GLOBALS['wp']->init();
[546] Fix | Delete
[547] Fix | Delete
/**
[548] Fix | Delete
* Fires after WordPress has finished loading but before any headers are sent.
[549] Fix | Delete
*
[550] Fix | Delete
* Most of WP is loaded at this stage, and the user is authenticated. WP continues
[551] Fix | Delete
* to load on the {@see 'init'} hook that follows (e.g. widgets), and many plugins instantiate
[552] Fix | Delete
* themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
[553] Fix | Delete
*
[554] Fix | Delete
* If you wish to plug an action once WP is loaded, use the {@see 'wp_loaded'} hook below.
[555] Fix | Delete
*
[556] Fix | Delete
* @since 1.5.0
[557] Fix | Delete
*/
[558] Fix | Delete
do_action( 'init' );
[559] Fix | Delete
[560] Fix | Delete
// Check site status.
[561] Fix | Delete
if ( is_multisite() ) {
[562] Fix | Delete
$file = ms_site_check();
[563] Fix | Delete
if ( true !== $file ) {
[564] Fix | Delete
require $file;
[565] Fix | Delete
die();
[566] Fix | Delete
}
[567] Fix | Delete
unset( $file );
[568] Fix | Delete
}
[569] Fix | Delete
[570] Fix | Delete
/**
[571] Fix | Delete
* This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
[572] Fix | Delete
*
[573] Fix | Delete
* Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
[574] Fix | Delete
* users not logged in.
[575] Fix | Delete
*
[576] Fix | Delete
* @link https://codex.wordpress.org/AJAX_in_Plugins
[577] Fix | Delete
*
[578] Fix | Delete
* @since 3.0.0
[579] Fix | Delete
*/
[580] Fix | Delete
do_action( 'wp_loaded' );
[581] Fix | Delete
[582] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function