diff --git a/modules/checklists/checklists.php b/modules/checklists/checklists.php index e4fb18b3..86caa3d6 100644 --- a/modules/checklists/checklists.php +++ b/modules/checklists/checklists.php @@ -775,12 +775,12 @@ public function display_meta_box($post) 'Not required, but important: ', 'publishpress-checklists' ), - 'show_warning_icon_submit' => Base_requirement::VALUE_YES === $legacyPlugin->settings->module->options->show_warning_icon_submit, - 'disable_publish_button' => Base_requirement::VALUE_YES === $legacyPlugin->settings->module->options->disable_publish_button, - 'title_warning_icon' => esc_html__('One or more items in the checklist are not completed'), - 'is_gutenberg_active' => $this->is_gutenberg_active(), - 'user_can_manage_options' => current_user_can('manage_options'), - 'configure_url' => esc_url($this->get_admin_link()), + 'show_warning_icon_submit' => Base_requirement::VALUE_YES === $legacyPlugin->settings->module->options->show_warning_icon_submit, + 'disable_publish_button' => Base_requirement::VALUE_YES === $legacyPlugin->settings->module->options->disable_publish_button, + 'title_warning_icon' => esc_html__('One or more items in the checklist are not completed'), + 'is_gutenberg_active' => $this->is_gutenberg_active(), + 'user_can_manage_options' => current_user_can('manage_options'), + 'configure_url' => esc_url($this->get_admin_link()), ] ); diff --git a/modules/settings/settings.php b/modules/settings/settings.php index dafa4737..112c18e5 100644 --- a/modules/settings/settings.php +++ b/modules/settings/settings.php @@ -71,6 +71,7 @@ public function __construct() 'post_types' => [ 'post' => 'on', ], + 'disable_publish_button' => Base_requirement::VALUE_NO, 'show_warning_icon_submit' => Base_requirement::VALUE_YES, 'openai_api_key' => '', ],