mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fix output country fields if there are no options
This commit is contained in:
@@ -2762,7 +2762,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
// 'country'
|
||||
if ( $key === 'country' && empty( $options ) ) {
|
||||
$options = UM()->builtin()->get( 'countries' );
|
||||
} else if ( empty( $options ) ) {
|
||||
} else if ( empty( $options ) && isset( $data['options'] ) ) {
|
||||
$options = $data['options'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user