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:
Lucas Stark 2015-08-19 13:39:38 -04:00
parent c889c4406a
commit 00be9b1324
1 changed files with 1 additions and 0 deletions

View File

@ -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'] );