mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Revert "Add Billing/Shipping State filter to the member directory"
This commit is contained in:
committed by
GitHub
parent
463267ef5e
commit
3b4fa1333c
@@ -136,9 +136,7 @@ if ( ! class_exists( 'um\core\Form' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
if ( 0 !== current( array_keys( $arr_options['items'] ) ) ) {
|
||||
$arr_options['items'] = array_intersect_key( array_map( 'trim', $arr_options['items'] ), array_flip( $values_array ) );
|
||||
} elseif ( ! empty( $values_array ) ) {
|
||||
if ( ! empty( $values_array ) ) {
|
||||
$arr_options['items'] = array_intersect( $arr_options['items'], $values_array );
|
||||
} else {
|
||||
$arr_options['items'] = array();
|
||||
|
||||
Reference in New Issue
Block a user