From 0b3d0b78ee2f6bca06ccb5fb098a721f69d01af3 Mon Sep 17 00:00:00 2001 From: olatechpro Date: Tue, 30 Jul 2024 14:20:29 +0100 Subject: [PATCH] Disable Editorial Comments and Fields for new sites #1600 --- modules/editorial-comments/editorial-comments.php | 2 +- modules/editorial-metadata/editorial-metadata.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/editorial-comments/editorial-comments.php b/modules/editorial-comments/editorial-comments.php index 5d7aa6c1..903abf2b 100644 --- a/modules/editorial-comments/editorial-comments.php +++ b/modules/editorial-comments/editorial-comments.php @@ -67,7 +67,7 @@ public function __construct() 'icon_class' => 'dashicons dashicons-admin-comments', 'slug' => 'editorial-comments', 'default_options' => [ - 'enabled' => 'on', + 'enabled' => 'off', 'post_types' => [ 'post' => 'on', 'page' => 'on', diff --git a/modules/editorial-metadata/editorial-metadata.php b/modules/editorial-metadata/editorial-metadata.php index 6ebbb094..f2998115 100644 --- a/modules/editorial-metadata/editorial-metadata.php +++ b/modules/editorial-metadata/editorial-metadata.php @@ -233,7 +233,7 @@ public function install() $this->setDefaultCapabilities(); - //$publishpress->update_module_option($this->module->name, 'enabled', 'off'); + $publishpress->update_module_option($this->module->name, 'enabled', 'off'); } /**