Everywhere yoda conditions are
This commit is contained in:
@ -33,6 +33,7 @@ class Signup_Field_Period_Selection extends Base_Signup_Field {
|
||||
|
||||
return 'period_selection';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if this field should be present on the checkout flow or not.
|
||||
*
|
||||
@ -81,6 +82,7 @@ class Signup_Field_Period_Selection extends Base_Signup_Field {
|
||||
|
||||
return __('Adds a period selector, that allows customers to switch between different billing periods.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the icon to be used on the selector.
|
||||
*
|
||||
@ -285,7 +287,7 @@ class Signup_Field_Period_Selection extends Base_Signup_Field {
|
||||
*/
|
||||
public function to_fields_array($attributes) {
|
||||
|
||||
if (wu_get_isset($attributes, 'period_selection_template') === 'legacy') {
|
||||
if ('legacy' === wu_get_isset($attributes, 'period_selection_template')) {
|
||||
wp_register_script('wu-legacy-signup', wu_get_asset('legacy-signup.js', 'js'), ['wu-functions'], wu_get_version());
|
||||
|
||||
wp_enqueue_script('wu-legacy-signup');
|
||||
|
Reference in New Issue
Block a user