- 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:
nikitasinelnikov
2019-11-26 19:05:07 +02:00
parent 2da12b3354
commit 1ca0a66d98
7 changed files with 22 additions and 16 deletions
+2
View File
@@ -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 '';
}