Default value for single_select_country and multi_select_countries settings field not passed into output

Fix #18753
This commit is contained in:
Ralf Wiechers 2018-02-01 15:45:38 +01:00 committed by GitHub
parent 974ff71129
commit c6839e7962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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