| Conditions | 3 |
| Paths | 3 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | function load_3rd_party() { |
||
| 15 | // Array of third-party compat files to always require. |
||
| 16 | $compat_files = array( |
||
| 17 | 'bbpress.php', |
||
| 18 | 'beaverbuilder.php', |
||
| 19 | 'bitly.php', |
||
| 20 | 'buddypress.php', |
||
| 21 | 'class.jetpack-amp-support.php', |
||
| 22 | 'class.jetpack-modules-overrides.php', // Special case. Tools to be used to override module settings. |
||
| 23 | 'debug-bar.php', |
||
| 24 | 'domain-mapping.php', |
||
| 25 | 'polldaddy.php', |
||
| 26 | 'qtranslate-x.php', |
||
| 27 | 'vaultpress.php', |
||
| 28 | 'wpml.php', |
||
| 29 | 'woocommerce.php', |
||
| 30 | 'woocommerce-services.php', |
||
| 31 | ); |
||
| 32 | |||
| 33 | foreach ( $compat_files as $file ) { |
||
| 34 | if ( file_exists( JETPACK__PLUGIN_DIR . '/3rd-party/' . $file ) ) { |
||
| 35 | require_once JETPACK__PLUGIN_DIR . '/3rd-party/' . $file; |
||
| 36 | } |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 41 |