Update class-wc-admin-settings.php
Reset the $value to array when processing image_width. Strange bug if the value is a string and the array is not explicitly created.
This commit is contained in:
parent
c889c4406a
commit
00be9b1324
|
@ -690,6 +690,7 @@ class WC_Admin_Settings {
|
|||
$value = array_filter( array_map( 'wc_clean', (array) $raw_value ) );
|
||||
break;
|
||||
case 'image_width' :
|
||||
$value = array();
|
||||
if ( isset( $raw_value['width'] ) ) {
|
||||
$value['width'] = wc_clean( $raw_value['width'] );
|
||||
$value['height'] = wc_clean( $raw_value['height'] );
|
||||
|
|
Loading…
Reference in New Issue