Fixed notice "undefined index: id" in woocommerce-admin-settings-forms.php:729
This commit is contained in:
parent
cee85cb443
commit
0aba73fd37
|
@ -195,6 +195,7 @@ function woocommerce_admin_fields($options) {
|
|||
|
||||
foreach ( $options as $value ) {
|
||||
if ( ! isset( $value['type'] ) ) continue;
|
||||
if ( ! isset( $value['id'] ) ) $value['id'] = '';
|
||||
if ( ! isset( $value['name'] ) ) $value['name'] = '';
|
||||
if ( ! isset( $value['class'] ) ) $value['class'] = '';
|
||||
if ( ! isset( $value['css'] ) ) $value['css'] = '';
|
||||
|
|
Loading…
Reference in New Issue