Skip to content

Commit

Permalink
Fix. Forms decoration. Fatal error getting decoration fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Dec 26, 2024
1 parent 2c7c328 commit f1abaa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cleantalk/ApbctWP/FormDecorator/FormDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public function setDecorationSet($localized_set_name)
global $apbct;
$registered_name = $this->decoration_registry->getRegisteredNameByLocalizedName($localized_set_name);
$this->decoration_set = $this->decoration_registry->getDecoration($registered_name);
$this->decoration_set->localizeCSS();
if (false === $this->decoration_set) {
$this->addError(': ' . __('No decoration set registered with name', 'cleantalk-spam-protect') . '[' . esc_html($localized_set_name) . ']');
return;
}
$this->decoration_set->localizeCSS();
$this->decoration_set->text = $apbct->settings['comments__form_decoration_text'];
$this->decoration_set->color = !empty($apbct->settings['comments__form_decoration_color'])
? $apbct->settings['comments__form_decoration_color']
Expand Down

0 comments on commit f1abaa3

Please sign in to comment.