Skip to content

Commit

Permalink
Merge pull request #1703 from publishpress/feature/#1600_Disable_Edit…
Browse files Browse the repository at this point in the history
…orial_Comments_and_Fields_for_new_sites

feature/#1600_Disable_Editorial_Comments_and_Fields_for_new_sites
  • Loading branch information
olatechpro authored Jul 23, 2024
2 parents b73c054 + 66f8d22 commit ca4b03b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/editorial-comments/editorial-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions modules/editorial-metadata/editorial-metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ public function init()
*/
public function install()
{
global $publishpress;

// Our default editorial fieldss
$default_metadata = [
[
Expand Down Expand Up @@ -230,6 +232,8 @@ public function install()
}

$this->setDefaultCapabilities();

$publishpress->update_module_option($this->module->name, 'enabled', 'off');
}

/**
Expand Down

0 comments on commit ca4b03b

Please sign in to comment.