Cast multiselect keys as strings since html does not know anything about integers.

This commit is contained in:
Gerhard Potgieter 2018-01-30 14:03:28 +02:00
parent bd41fe6de4
commit e041136974
1 changed files with 2 additions and 2 deletions

View File

@ -378,9 +378,9 @@ if ( ! class_exists( 'WC_Admin_Settings', false ) ) :
<?php
if ( is_array( $option_value ) ) {
selected( in_array( $key, $option_value, true ), true );
selected( in_array( (string)$key, $option_value, true ), true );
} else {
selected( $option_value, $key );
selected( $option_value, (string)$key );
}
?>