Fixed undefined variables in payment methods endpoint

This commit is contained in:
Claudio Sanches 2017-03-21 17:34:16 -03:00
parent 3e7f902e75
commit d2e1565f97
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ class WC_REST_Payment_Gateways_Controller extends WC_REST_Controller {
'label' => empty( $field['label'] ) ? $field['title'] : $field['label'], 'label' => empty( $field['label'] ) ? $field['title'] : $field['label'],
'description' => empty( $field['description'] ) ? '' : $field['description'], 'description' => empty( $field['description'] ) ? '' : $field['description'],
'type' => $field['type'], 'type' => $field['type'],
'value' => $gateway->settings[ $id ], 'value' => empty( $gateway->settings[ $id ] ) ? '' : $gateway->settings[ $id ],
'default' => empty( $field['default'] ) ? '' : $field['default'], 'default' => empty( $field['default'] ) ? '' : $field['default'],
'tip' => empty( $field['description'] ) ? '' : $field['description'], 'tip' => empty( $field['description'] ) ? '' : $field['description'],
'placeholder' => empty( $field['placeholder'] ) ? '' : $field['placeholder'], 'placeholder' => empty( $field['placeholder'] ) ? '' : $field['placeholder'],