| @@ -6,8 +6,12 @@ | ||
| 6 | 6 | * |
| 7 | 7 | * @package automattic/jetpack |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 11 | + exit( 0 ); | |
| 12 | +} | |
| 13 | + | |
| 10 | 14 | /** |
| 11 | 15 | * Features available all the time: |
| 12 | 16 | * - When in offline mode. |
| 13 | 17 | * - When connected to WordPress.com. |
| @@ -12,11 +16,8 @@ | ||
| 12 | 16 | * - When in offline mode. |
| 13 | 17 | * - When connected to WordPress.com. |
| 14 | 18 | */ |
| 15 | 19 | $tools = array( |
| 16 | - // Always loaded, but only registered if theme supports it. | |
| 17 | - 'custom-post-types/nova.php', | |
| 18 | - 'geo-location.php', | |
| 19 | 20 | // Those oEmbed providers are always available. |
| 20 | 21 | 'shortcodes/facebook.php', |
| 21 | 22 | 'shortcodes/others.php', |
| 22 | 23 | // Theme Tools. |
| @@ -21,8 +22,9 @@ | ||
| 21 | 22 | 'shortcodes/others.php', |
| 22 | 23 | // Theme Tools. |
| 23 | 24 | 'theme-tools.php', |
| 24 | 25 | 'theme-tools/social-links.php', |
| 26 | + 'theme-tools/random-redirect.php', | |
| 25 | 27 | 'theme-tools/featured-content.php', |
| 26 | 28 | 'theme-tools/responsive-videos.php', |
| 27 | 29 | 'theme-tools/site-logo.php', |
| 28 | 30 | 'theme-tools/site-breadcrumbs.php', |
| @@ -29,20 +31,25 @@ | ||
| 29 | 31 | 'theme-tools/social-menu.php', |
| 30 | 32 | 'theme-tools/content-options.php', |
| 31 | 33 | // Needed for VideoPress, so videos keep working in existing posts/pages when the module is deactivated. |
| 32 | 34 | 'videopress/class.videopress-gutenberg.php', |
| 35 | + // Reprint export. Registers nothing off Pressable and WordPress.com (Atomic). | |
| 36 | + 'reprint-export.php', | |
| 33 | 37 | ); |
| 34 | 38 | |
| 35 | 39 | // Some features are only available when connected to WordPress.com. |
| 36 | 40 | $connected_tools = array( |
| 41 | + 'external-media/external-media.php', | |
| 37 | 42 | 'plugin-search.php', |
| 38 | 43 | 'scan/scan.php', // Shows Jetpack Scan alerts in the admin bar if threats found. |
| 39 | - 'simple-payments/simple-payments.php', | |
| 44 | + 'simple-payments.php', | |
| 40 | 45 | 'wpcom-tos/wpcom-tos.php', |
| 41 | 46 | // These oEmbed providers are available when connected to WordPress.com. |
| 42 | 47 | // Starting from 2020-10-24, they need an authentication token, and that token is stored on WordPress.com. |
| 43 | 48 | // More information: https://developers.facebook.com/docs/instagram/oembed/. |
| 44 | 49 | 'shortcodes/instagram.php', |
| 50 | + // This Twitter oEmbed provider relies on a connection to WordPress.com to proxy the request. | |
| 51 | + 'shortcodes/twitter.php', | |
| 45 | 52 | ); |
| 46 | 53 | |
| 47 | 54 | // Add connected features to our existing list if the site is currently connected. |
| 48 | 55 | if ( Jetpack::is_connection_ready() ) { |