Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack
File: load-jetpack.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Load all Jetpack files that do not get loaded via the autoloader.
[2] Fix | Delete
*
[3] Fix | Delete
* @package automattic/jetpack
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[7] Fix | Delete
exit( 0 );
[8] Fix | Delete
}
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Checks if the code debug mode turned on, and returns false if it is. When Jetpack is in
[12] Fix | Delete
* code debug mode, it shouldn't use minified assets. Note that this filter is not being used
[13] Fix | Delete
* in every place where assets are enqueued. The filter is added at priority 9 to be overridden
[14] Fix | Delete
* by any default priority filter that runs after it.
[15] Fix | Delete
*
[16] Fix | Delete
* @since 6.2.0
[17] Fix | Delete
*
[18] Fix | Delete
* @return boolean
[19] Fix | Delete
*
[20] Fix | Delete
* @filter jetpack_should_use_minified_assets
[21] Fix | Delete
*/
[22] Fix | Delete
function jetpack_should_use_minified_assets() {
[23] Fix | Delete
return ! defined( 'SCRIPT_DEBUG' ) || ! SCRIPT_DEBUG;
[24] Fix | Delete
}
[25] Fix | Delete
add_filter( 'jetpack_should_use_minified_assets', 'jetpack_should_use_minified_assets', 9 );
[26] Fix | Delete
[27] Fix | Delete
// @todo: Abstract out the admin functions, and only include them if is_admin()
[28] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack.php';
[29] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack-network.php';
[30] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack-client-server.php';
[31] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack-user-agent.php';
[32] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack-post-images.php';
[33] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack-heartbeat.php';
[34] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.photon.php';
[35] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'functions.photon.php';
[36] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'functions.global.php';
[37] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'functions.compat.php';
[38] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class-jetpack-gallery-settings.php';
[39] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'functions.cookies.php';
[40] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack-autoupdate.php';
[41] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.frame-nonce-preview.php';
[42] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'modules/module-headings.php';
[43] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack-plan.php';
[44] Fix | Delete
// Used by the API endpoints or used in an odd number of places.
[45] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'modules/seo-tools/class-jetpack-seo-utils.php';
[46] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'modules/seo-tools/class-jetpack-seo-titles.php';
[47] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'modules/seo-tools/class-jetpack-seo-posts.php';
[48] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'modules/verification-tools/verification-tools-utils.php';
[49] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'modules/shortcodes/shortcode-utils.php'; // Shortcodes are often referenced in other modules, so making it available early.
[50] Fix | Delete
[51] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class-jetpack-xmlrpc-methods.php';
[52] Fix | Delete
Jetpack_XMLRPC_Methods::init();
[53] Fix | Delete
[54] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class-jetpack-connection-status.php';
[55] Fix | Delete
Jetpack_Connection_Status::init();
[56] Fix | Delete
[57] Fix | Delete
require_once JETPACK__PLUGIN_DIR . '_inc/lib/class-jetpack-recommendations.php';
[58] Fix | Delete
[59] Fix | Delete
if ( is_admin() ) {
[60] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php';
[61] Fix | Delete
require_once JETPACK__PLUGIN_DIR . '_inc/lib/debugger.php';
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
// Play nice with https://wp-cli.org/.
[65] Fix | Delete
if ( defined( 'WP_CLI' ) && WP_CLI ) {
[66] Fix | Delete
require_once JETPACK__PLUGIN_DIR . 'class.jetpack-cli.php';
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
require_once JETPACK__PLUGIN_DIR . '_inc/lib/class.core-rest-api-endpoints.php';
[70] Fix | Delete
require_once JETPACK__PLUGIN_DIR . '_inc/blogging-prompts.php';
[71] Fix | Delete
[72] Fix | Delete
add_action( 'updating_jetpack_version', array( 'Jetpack', 'do_version_bump' ), 10, 2 );
[73] Fix | Delete
add_filter( 'is_jetpack_site', '__return_true' );
[74] Fix | Delete
[75] Fix | Delete
require_once JETPACK__PLUGIN_DIR . '3rd-party/3rd-party.php';
[76] Fix | Delete
[77] Fix | Delete
Jetpack::init();
[78] Fix | Delete
[79] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function