From 456cd0cc4cc46fdab0a14f06e23c566b677946e0 Mon Sep 17 00:00:00 2001 From: Timi Wahalahti Date: Tue, 10 Oct 2023 01:44:18 +0300 Subject: [PATCH] Jetpack: Add new default modules (#719) --- .../mu-plugins/jetpack-tweaks/modules.php | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/public_html/wp-content/mu-plugins/jetpack-tweaks/modules.php b/public_html/wp-content/mu-plugins/jetpack-tweaks/modules.php index 5fdb91de8..5519953ed 100644 --- a/public_html/wp-content/mu-plugins/jetpack-tweaks/modules.php +++ b/public_html/wp-content/mu-plugins/jetpack-tweaks/modules.php @@ -28,8 +28,27 @@ function disable_modules( $modules ) { * Determine which Jetpack modules should be automatically activated when new sites are created */ function default_jetpack_modules( $modules ) { - $modules = array_diff( $modules, array( 'widget-visibility' ) ); - array_push( $modules, 'contact-form', 'shortcodes', 'custom-css', 'subscriptions' ); + // Disable some default modules. + $modules = array_diff( + $modules, + array( + 'widget-visibility', // better performance without. + 'sitemaps', // Core generates basic sitemaps. + ) + ); + + // Add new default modules. + array_push( + $modules, + 'contact-form', + 'copy-post', + 'custom-css', + 'image-cdn', + 'sharedaddy', + 'shortcodes', + 'subscriptions' + ); + $modules = array_unique( $modules ); return $modules;