| @@ -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'; | |
| 67 | 66 | |
| 67 | +require_once JETPACK__PLUGIN_DIR . '_inc/lib/class-jetpack-recommendations.php'; | |
| 68 | + | |
| 68 | 69 | \Automattic\Jetpack\Newsletter\Settings::register_feature_flags(); |
| 69 | 70 | |
| 70 | 71 | if ( is_admin() ) { |
| 71 | 72 | require_once JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php'; |
| @@ -75,12 +76,8 @@ | ||
| 75 | 76 | \Automattic\Jetpack\Newsletter\Settings::init(); |
| 76 | 77 | |
| 77 | 78 | \Automattic\Jetpack\Newsletter\Writing_Prompt_Widget::init(); |
| 78 | 79 | |
| 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 | - | |
| 83 | 80 | \Automattic\Jetpack\Plugin\Jetpack_Script_Data::configure(); |
| 84 | 81 | } |
| 85 | 82 | |
| 86 | 83 | // Play nice with https://wp-cli.org/. |
| @@ -94,9 +91,12 @@ | ||
| 94 | 91 | require_once JETPACK__PLUGIN_DIR . '_inc/content-guidelines-ai.php'; |
| 95 | 92 | } |
| 96 | 93 | |
| 97 | 94 | add_action( 'updating_jetpack_version', array( 'Jetpack', 'activate_subscriptions_module_for_existing_sites' ), 10, 2 ); |
| 98 | -add_action( 'updating_jetpack_version', array( 'Jetpack', 'cleanup_seo_module_state_options' ) ); | |
| 95 | +// Seed + keep in sync the durable Jetpack SEO module-state options while the legacy | |
| 96 | +// Sitemaps / Canonical URLs modules still exist. Removed in the deferred post-convergence | |
| 97 | +// follow-up that absorbs those modules into Jetpack SEO. | |
| 98 | +Jetpack::register_seo_module_migration_hooks(); | |
| 99 | 99 | add_action( 'updating_jetpack_version', array( 'Jetpack', 'seed_seo_visibility_cohort' ), 10, 2 ); |
| 100 | 100 | add_filter( 'is_jetpack_site', '__return_true' ); |
| 101 | 101 | |
| 102 | 102 | require_once JETPACK__PLUGIN_DIR . '3rd-party/3rd-party.php'; |