- code review for pull request (#917)

This commit is contained in:
Nikita Sinelnikov
2021-09-17 20:06:04 +03:00
parent ca166a15ce
commit 7f7bdeabd4
3 changed files with 3 additions and 4 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -483,7 +483,6 @@ jQuery(document).ready( function() {
});
function um_set_range_label( slider, ui ) {
console.log( slider );
var placeholder = '';
var placeholder_s = slider.siblings( '.um-slider-range' ).data( 'placeholder-s' );
var placeholder_p = slider.siblings( '.um-slider-range' ).data( 'placeholder-p' );
+2 -2
View File
@@ -217,8 +217,8 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
if ( ! empty( $filter_type ) ) {
if ( 'slider' === $filter_type ) {
if ( ! empty( $_POST[ $k ] ) ) {
if ( count($_POST[ $k ]) > 1 ) {
$temp_value[ $k ] = $_POST[ $k ];
if ( count( $_POST[ $k ] ) > 1 ) {
$temp_value[ $k ] = array_map( 'intval', $_POST[ $k ] );
} else {
$temp_value[ $k ] = (int) $_POST[ $k ];
}