| @@ -62,10 +62,11 @@ | ||
| 62 | 62 | // Also required directly by the AI extension files because on WordPress.com |
| 63 | 63 | // Simple this bootstrap never runs. The class self-initializes when loaded. |
| 64 | 64 | require_once JETPACK__PLUGIN_DIR . '_inc/lib/class-jetpack-ai-settings.php'; |
| 65 | 65 | require_once JETPACK__PLUGIN_DIR . '_inc/lib/class-jetpack-ai-feature-flags.php'; |
| 66 | +require_once JETPACK__PLUGIN_DIR . '_inc/lib/class-jetpack-settings-feature-flags.php'; | |
| 66 | 67 | |
| 67 | -require_once JETPACK__PLUGIN_DIR . '_inc/lib/class-jetpack-recommendations.php'; | |
| 68 | +\Automattic\Jetpack\Newsletter\Settings::register_feature_flags(); | |
| 68 | 69 | |
| 69 | 70 | if ( is_admin() ) { |
| 70 | 71 | require_once JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php'; |
| 71 | 72 | require_once JETPACK__PLUGIN_DIR . '_inc/lib/debugger.php'; |
| @@ -74,8 +75,12 @@ | ||
| 74 | 75 | \Automattic\Jetpack\Newsletter\Settings::init(); |
| 75 | 76 | |
| 76 | 77 | \Automattic\Jetpack\Newsletter\Writing_Prompt_Widget::init(); |
| 77 | 78 | |
| 79 | + // Settings > Sharing owns its own screen, so it exists whichever modules are active. | |
| 80 | + \Automattic\Jetpack\Sharing_Likes\Settings\Settings_Page::init(); | |
| 81 | + \Automattic\Jetpack\Sharing_Likes\Settings\Post_Handler::init(); | |
| 82 | + | |
| 78 | 83 | \Automattic\Jetpack\Plugin\Jetpack_Script_Data::configure(); |
| 79 | 84 | } |
| 80 | 85 | |
| 81 | 86 | // Play nice with https://wp-cli.org/. |
| @@ -89,12 +94,9 @@ | ||
| 89 | 94 | require_once JETPACK__PLUGIN_DIR . '_inc/content-guidelines-ai.php'; |
| 90 | 95 | } |
| 91 | 96 | |
| 92 | 97 | add_action( 'updating_jetpack_version', array( 'Jetpack', 'activate_subscriptions_module_for_existing_sites' ), 10, 2 ); |
| 93 | -// Seed + keep in sync the durable Jetpack SEO module-state options while the legacy | |
| 94 | -// Sitemaps / Canonical URLs modules still exist. Removed in the deferred post-convergence | |
| 95 | -// follow-up that absorbs those modules into Jetpack SEO. | |
| 96 | -Jetpack::register_seo_module_migration_hooks(); | |
| 98 | +add_action( 'updating_jetpack_version', array( 'Jetpack', 'cleanup_seo_module_state_options' ) ); | |
| 97 | 99 | add_action( 'updating_jetpack_version', array( 'Jetpack', 'seed_seo_visibility_cohort' ), 10, 2 ); |
| 98 | 100 | add_filter( 'is_jetpack_site', '__return_true' ); |
| 99 | 101 | |
| 100 | 102 | require_once JETPACK__PLUGIN_DIR . '3rd-party/3rd-party.php'; |