Merge pull request #1002 from GeertDD/fix-notice
Fixed notice "undefined index: id" in woocommerce-admin-settings-forms.php:729
This commit is contained in:
commit
6a40ee9ef4
|
@ -195,6 +195,7 @@ function woocommerce_admin_fields($options) {
|
||||||
|
|
||||||
foreach ( $options as $value ) {
|
foreach ( $options as $value ) {
|
||||||
if ( ! isset( $value['type'] ) ) continue;
|
if ( ! isset( $value['type'] ) ) continue;
|
||||||
|
if ( ! isset( $value['id'] ) ) $value['id'] = '';
|
||||||
if ( ! isset( $value['name'] ) ) $value['name'] = '';
|
if ( ! isset( $value['name'] ) ) $value['name'] = '';
|
||||||
if ( ! isset( $value['class'] ) ) $value['class'] = '';
|
if ( ! isset( $value['class'] ) ) $value['class'] = '';
|
||||||
if ( ! isset( $value['css'] ) ) $value['css'] = '';
|
if ( ! isset( $value['css'] ) ) $value['css'] = '';
|
||||||
|
|
Loading…
Reference in New Issue