Fixed undefined variables in payment methods endpoint
This commit is contained in:
parent
3e7f902e75
commit
d2e1565f97
|
@ -296,7 +296,7 @@ class WC_REST_Payment_Gateways_Controller extends WC_REST_Controller {
|
|||
'label' => empty( $field['label'] ) ? $field['title'] : $field['label'],
|
||||
'description' => empty( $field['description'] ) ? '' : $field['description'],
|
||||
'type' => $field['type'],
|
||||
'value' => $gateway->settings[ $id ],
|
||||
'value' => empty( $gateway->settings[ $id ] ) ? '' : $gateway->settings[ $id ],
|
||||
'default' => empty( $field['default'] ) ? '' : $field['default'],
|
||||
'tip' => empty( $field['description'] ) ? '' : $field['description'],
|
||||
'placeholder' => empty( $field['placeholder'] ) ? '' : $field['placeholder'],
|
||||
|
|
Loading…
Reference in New Issue