PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 12.3
Jetpack – WP Security, Backup, Speed, & Growth v12.3
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / load-jetpack.php

load-jetpack.php in Jetpack – WP Security, Backup, Speed, & Growth 12.3, at load-jetpack.php

79 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Load all Jetpack files that do not get loaded via the autoloader.
4 *
5 * @package automattic/jetpack
6 */
7
8 /**
9 * Checks if the code debug mode turned on, and returns false if it is. When Jetpack is in
10 * code debug mode, it shouldn't use minified assets. Note that this filter is not being used
11 * in every place where assets are enqueued. The filter is added at priority 9 to be overridden
12 * by any default priority filter that runs after it.
13 *
14 * @since 6.2.0
15 *
16 * @return boolean
17 *
18 * @filter jetpack_should_use_minified_assets
19 */
20 function jetpack_should_use_minified_assets() {
21 return ! defined( 'SCRIPT_DEBUG' ) || ! SCRIPT_DEBUG;
22 }
23 add_filter( 'jetpack_should_use_minified_assets', 'jetpack_should_use_minified_assets', 9 );
24
25 // @todo: Abstract out the admin functions, and only include them if is_admin()
26 require_once JETPACK__PLUGIN_DIR . 'class.jetpack.php';
27 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-network.php';
28 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-client-server.php';
29 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-user-agent.php';
30 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-post-images.php';
31 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-heartbeat.php';
32 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-boost-modules.php';
33 require_once JETPACK__PLUGIN_DIR . 'class.photon.php';
34 require_once JETPACK__PLUGIN_DIR . 'functions.photon.php';
35 require_once JETPACK__PLUGIN_DIR . 'functions.global.php';
36 require_once JETPACK__PLUGIN_DIR . 'functions.compat.php';
37 require_once JETPACK__PLUGIN_DIR . 'class-jetpack-gallery-settings.php';
38 require_once JETPACK__PLUGIN_DIR . 'functions.cookies.php';
39 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-autoupdate.php';
40 require_once JETPACK__PLUGIN_DIR . 'class.frame-nonce-preview.php';
41 require_once JETPACK__PLUGIN_DIR . 'modules/module-headings.php';
42 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-connection-banner.php';
43 require_once JETPACK__PLUGIN_DIR . 'class-jetpack-connection-widget.php';
44 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-plan.php';
45 // Used by the API endpoints.
46 require_once JETPACK__PLUGIN_DIR . 'modules/seo-tools/class-jetpack-seo-utils.php';
47 require_once JETPACK__PLUGIN_DIR . 'modules/seo-tools/class-jetpack-seo-titles.php';
48 require_once JETPACK__PLUGIN_DIR . 'modules/seo-tools/class-jetpack-seo-posts.php';
49 require_once JETPACK__PLUGIN_DIR . 'modules/verification-tools/verification-tools-utils.php';
50
51 require_once JETPACK__PLUGIN_DIR . 'class-jetpack-xmlrpc-methods.php';
52 Jetpack_XMLRPC_Methods::init();
53
54 require_once JETPACK__PLUGIN_DIR . 'class-jetpack-connection-status.php';
55 Jetpack_Connection_Status::init();
56
57 require_once JETPACK__PLUGIN_DIR . '_inc/lib/class-jetpack-recommendations.php';
58 require_once JETPACK__PLUGIN_DIR . 'class-jetpack-recommendations-banner.php';
59
60 if ( is_admin() ) {
61 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php';
62 require_once JETPACK__PLUGIN_DIR . '_inc/lib/debugger.php';
63 }
64
65 // Play nice with https://wp-cli.org/.
66 if ( defined( 'WP_CLI' ) && WP_CLI ) {
67 require_once JETPACK__PLUGIN_DIR . 'class.jetpack-cli.php';
68 }
69
70 require_once JETPACK__PLUGIN_DIR . '_inc/lib/class.core-rest-api-endpoints.php';
71 require_once JETPACK__PLUGIN_DIR . '_inc/blogging-prompts.php';
72
73 add_action( 'updating_jetpack_version', array( 'Jetpack', 'do_version_bump' ), 10, 2 );
74 add_filter( 'is_jetpack_site', '__return_true' );
75
76 require_once JETPACK__PLUGIN_DIR . '3rd-party/3rd-party.php';
77
78 Jetpack::init();
79