Fix i18n deprecation notice for translating too early
This commit is contained in:
1 parent
6d7e7cef66
commit
eb29a438a5
26 files changed
+98
-104
No files matched your search
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user