Revert "Add Billing/Shipping State filter to the member directory"

This commit is contained in:
Nikita Sinelnikov
2021-12-14 00:17:25 +02:00
committed by GitHub
parent 463267ef5e
commit 3b4fa1333c
+1 -3
View File
@@ -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();