More yoda conditions

This commit is contained in:
David Stone
2025-02-09 12:30:02 -07:00
parent d9122a410d
commit 0a4c81c105
97 changed files with 323 additions and 289 deletions

View File

@ -185,11 +185,11 @@ function wu_is_form_field_pre_selected($field_slug) {
*/
function wu_form_field_request_arg($field) {
if ($field['type'] === 'template_selection') {
if ('template_selection' === $field['type']) {
return 'template_id';
}
if ($field['type'] === 'pricing_table') {
if ('pricing_table' === $field['type']) {
return 'products';
}