forked from Automattic/vip-go-mu-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jetpack.php
40 lines (31 loc) · 1.29 KB
/
jetpack.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/*
* Plugin Name: Jetpack by WordPress.com
* Plugin URI: https://jetpack.com
* 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.
* Author: Automattic
* Version: 7.2.1
* Author URI: https://jetpack.com
* License: GPL2+
* Text Domain: jetpack
* Domain Path: /languages/
*/
// Bump up the batch size to reduce the number of queries run to build a Jetpack sitemap.
if ( ! defined( 'JP_SITEMAP_BATCH_SIZE' ) ) {
define( 'JP_SITEMAP_BATCH_SIZE', 200 );
}
add_filter( 'jetpack_client_verify_ssl_certs', '__return_true' );
if ( ! @constant( 'WPCOM_IS_VIP_ENV' ) ) {
add_filter( 'jetpack_is_staging_site', '__return_true' );
}
$jetpack_to_load = WPMU_PLUGIN_DIR . '/jetpack/jetpack.php';
if ( defined( 'WPCOM_VIP_JETPACK_LOCAL' ) && WPCOM_VIP_JETPACK_LOCAL ) {
// Set a specific alternative Jetpack
$jetpack_to_test = WPCOM_VIP_CLIENT_MU_PLUGIN_DIR . '/jetpack/jetpack.php';
// Test that our proposed Jetpack exists, otherwise do not use it
if ( file_exists( $jetpack_to_test ) ) {
$jetpack_to_load = $jetpack_to_test;
}
}
require_once( $jetpack_to_load );
require_once( __DIR__ . '/vip-jetpack/vip-jetpack.php' );