Skip to content

Commit

Permalink
fix undefined disable_publish_button
Browse files Browse the repository at this point in the history
  • Loading branch information
richaferry committed Sep 21, 2024
1 parent b1cafa0 commit db3c8ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/checklists/checklists.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
]
);

Expand Down
1 change: 1 addition & 0 deletions modules/settings/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '',
],
Expand Down

0 comments on commit db3c8ea

Please sign in to comment.