Default value for single_select_country and multi_select_countries settings field not passed into output
Fix #18753
This commit is contained in:
parent
974ff71129
commit
c6839e7962
|
@ -566,7 +566,7 @@ if ( ! class_exists( 'WC_Admin_Settings', false ) ) :
|
|||
|
||||
// Single country selects.
|
||||
case 'single_select_country':
|
||||
$country_setting = (string) self::get_option( $value['id'] );
|
||||
$country_setting = (string) self::get_option( $value['id'], $value['default'] );
|
||||
|
||||
if ( strstr( $country_setting, ':' ) ) {
|
||||
$country_setting = explode( ':', $country_setting );
|
||||
|
|
Loading…
Reference in New Issue