mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 12:43:33 +09:00
Fix for fields shipping_country and billing_country.
Issue: billing_country not working in Default Profile anymore. Link: https://secure.helpscout.net/conversation/907381731/32251?folderId=1651531
This commit is contained in:
@@ -53,6 +53,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
|
||||
$validate = $field_attr['validate'];
|
||||
foreach ( $validate as $post_input => $arr ) {
|
||||
|
||||
// 'billing_country' and 'shipping_country'
|
||||
if( $post_input === '_options' && isset( $array[ 'post' ][ '_metakey' ] ) && in_array( $array[ 'post' ][ '_metakey' ], array( 'billing_country', 'shipping_country' ) ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$mode = $arr['mode'];
|
||||
|
||||
switch ( $mode ) {
|
||||
|
||||
Reference in New Issue
Block a user