mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed cleaning buffer when return from show_filter;
- fixed using different JS templates for different member directories (added member directory hash to JS templates);
This commit is contained in:
@@ -501,6 +501,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
}
|
||||
|
||||
if ( empty( $values_array ) ) {
|
||||
ob_get_clean();
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -552,6 +553,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
$attrs['options'] = apply_filters( 'um_member_directory_filter_select_options', $attrs['options'], $values_array, $attrs );
|
||||
|
||||
if ( empty( $attrs['options'] ) || ! is_array( $attrs['options'] ) ) {
|
||||
ob_get_clean();
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user