Fix i18n deprecation notice for translating too early

This commit is contained in:
David Stone
2025-02-15 15:06:43 -07:00
parent 6d7e7cef66
commit eb29a438a5
26 changed files with 98 additions and 104 deletions

View File

@ -570,7 +570,7 @@ class Checkout_Element extends Base_Element {
return sprintf(__('Checkout form %s contains no fields.', 'wp-ultimo'), $slug);
}
if ( ! $checkout_form->is_active() || ! wu_get_setting('enable_registration')) {
if ( ! $checkout_form->is_active() || ! wu_get_setting('enable_registration', true)) {
return sprintf('<p>%s</p>', __('Registration is not available at this time.', 'wp-ultimo'));
}