mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix missing directory filters when dropdown options has trailing slashes
This commit is contained in:
@@ -546,7 +546,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
}
|
||||
|
||||
if ( $attrs['metakey'] != 'role_select' && empty( $custom_dropdown ) ) {
|
||||
$attrs['options'] = array_intersect( $attrs['options'], $values_array );
|
||||
$attrs['options'] = array_intersect( array_map( 'stripslashes', $attrs['options'] ), $values_array );
|
||||
} elseif ( ! empty( $custom_dropdown ) ) {
|
||||
$attrs['options'] = array_intersect_key( $attrs['options'], array_flip( $values_array ) );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user