PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 4.2.5
Jetpack – WP Security, Backup, Speed, & Growth v4.2.5
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 / jetpack.php
jetpack.php
102 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * Plugin Name: Jetpack by WordPress.com
5 * Plugin URI: http://jetpack.com
6 * Description: Bring the power of the WordPress.com cloud to your self-hosted WordPress. Jetpack enables you to connect your blog to a WordPress.com account to use the powerful features normally only available to WordPress.com users.
7 * Author: Automattic
8 * Version: 4.2.5
9 * Author URI: http://jetpack.com
10 * License: GPL2+
11 * Text Domain: jetpack
12 * Domain Path: /languages/
13 */
14
15 define( 'JETPACK__MINIMUM_WP_VERSION', '4.5' );
16
17 define( 'JETPACK__VERSION', '4.2.5' );
18 define( 'JETPACK_MASTER_USER', true );
19 define( 'JETPACK__API_VERSION', 1 );
20 define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
21 define( 'JETPACK__PLUGIN_FILE', __FILE__ );
22
23 defined( 'JETPACK_CLIENT__AUTH_LOCATION' ) or define( 'JETPACK_CLIENT__AUTH_LOCATION', 'header' );
24 defined( 'JETPACK_CLIENT__HTTPS' ) or define( 'JETPACK_CLIENT__HTTPS', 'AUTO' );
25 defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) or define( 'JETPACK__GLOTPRESS_LOCALES_PATH', JETPACK__PLUGIN_DIR . 'locales.php' );
26 defined( 'JETPACK__API_BASE' ) or define( 'JETPACK__API_BASE', 'https://jetpack.wordpress.com/jetpack.' );
27 defined( 'JETPACK_PROTECT__API_HOST' ) or define( 'JETPACK_PROTECT__API_HOST', 'https://api.bruteprotect.com/' );
28 defined( 'JETPACK__WPCOM_JSON_API_HOST' ) or define( 'JETPACK__WPCOM_JSON_API_HOST', 'public-api.wordpress.com' );
29
30 /**
31 * Returns the location of Jetpack's lib directory. This filter is applied
32 * in require_lib().
33 *
34 * @since 4.0.2
35 *
36 * @return string Location of Jetpack library directory.
37 *
38 * @filter require_lib_dir
39 */
40 function jetpack_require_lib_dir() {
41 return JETPACK__PLUGIN_DIR . '_inc/lib';
42 }
43 add_filter( 'jetpack_require_lib_dir', 'jetpack_require_lib_dir' );
44
45 // @todo: Abstract out the admin functions, and only include them if is_admin()
46 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack.php' );
47 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-network.php' );
48 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-client.php' );
49 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-data.php' );
50 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-client-server.php' );
51 require_once( JETPACK__PLUGIN_DIR . 'sync/class.jetpack-sync-actions.php' );
52 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-options.php' );
53 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-user-agent.php' );
54 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-post-images.php' );
55 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-error.php' );
56 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-heartbeat.php' );
57 require_once( JETPACK__PLUGIN_DIR . 'class.photon.php' );
58 require_once( JETPACK__PLUGIN_DIR . 'functions.photon.php' );
59 require_once( JETPACK__PLUGIN_DIR . 'functions.global.php' );
60 require_once( JETPACK__PLUGIN_DIR . 'functions.compat.php' );
61 require_once( JETPACK__PLUGIN_DIR . 'functions.gallery.php' );
62 require_once( JETPACK__PLUGIN_DIR . 'require-lib.php' );
63 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-autoupdate.php' );
64 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-tracks.php' );
65 require_once( JETPACK__PLUGIN_DIR . 'modules/module-headings.php');
66
67 if ( is_admin() ) {
68 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php' );
69 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-jitm.php' );
70 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-debugger.php' );
71 }
72
73 // Play nice with http://wp-cli.org/
74 if ( defined( 'WP_CLI' ) && WP_CLI ) {
75 require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-cli.php' );
76 }
77
78 register_activation_hook( __FILE__, array( 'Jetpack', 'plugin_activation' ) );
79 register_deactivation_hook( __FILE__, array( 'Jetpack', 'plugin_deactivation' ) );
80 add_action( 'updating_jetpack_version', array( 'Jetpack', 'do_version_bump' ), 10, 2 );
81 add_action( 'init', array( 'Jetpack', 'init' ) );
82 add_action( 'plugins_loaded', array( 'Jetpack', 'load_modules' ), 100 );
83 add_filter( 'jetpack_static_url', array( 'Jetpack', 'staticize_subdomain' ) );
84 add_filter( 'is_jetpack_site', '__return_true' );
85
86 /**
87 * Add an easy way to photon-ize a URL that is safe to call even if Jetpack isn't active.
88 *
89 * See: http://jetpack.com/2013/07/11/photon-and-themes/
90 */
91 if ( Jetpack::is_module_active( 'photon' ) ) {
92 add_filter( 'jetpack_photon_url', 'jetpack_photon_url', 10, 3 );
93 }
94
95 /*
96 if ( is_admin() && ! Jetpack::check_identity_crisis() ) {
97 Jetpack_Sync::sync_options( __FILE__, 'db_version', 'jetpack_active_modules', 'active_plugins' );
98 }
99 */
100
101 require_once( JETPACK__PLUGIN_DIR . '3rd-party/3rd-party.php' );
102