Completed
Push — fix/709 ( 5dc225...9040d5 )
by
unknown
06:42
created

3rd-party.php ➔ load_3rd_party()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 25

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
nc 3
nop 0
dl 0
loc 25
rs 9.52
c 0
b 0
f 0
1
<?php
2
/**
3
 * Compatibility files for third-party plugins.
4
 * This is used to improve compatibility of specific Jetpack features with third-party plugins.
5
 *
6
 * @package Jetpack
7
 */
8
9
// Array of third-party compat files to always require.
10
$compat_files = array(
11
	'bbpress.php',
12
	'beaverbuilder.php',
13
	'bitly.php',
14
	'buddypress.php',
15
	'class.jetpack-amp-support.php',
16
	'class.jetpack-modules-overrides.php', // Special case. Tools to be used to override module settings.
17
	'debug-bar.php',
18
	'domain-mapping.php',
19
	'polldaddy.php',
20
	'qtranslate-x.php',
21
	'vaultpress.php',
22
	'wpml.php',
23
	'woocommerce.php',
24
	'woocommerce-services.php',
25
);
26
27
foreach ( $compat_files as $file ) {
28
	if ( file_exists( JETPACK__PLUGIN_DIR . '/3rd-party/' . $file ) ) {
29
		require_once JETPACK__PLUGIN_DIR . '/3rd-party/' . $file;
30
	}
31
}
32