mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed custom callback member directories filters with child dropdown filters;
This commit is contained in:
@@ -1465,11 +1465,10 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
*
|
||||
* @return array $arr_options
|
||||
*/
|
||||
function get_options_from_callback( $data, $type ) {
|
||||
public function get_options_from_callback( $data, $type ) {
|
||||
$arr_options = array();
|
||||
|
||||
if ( in_array( $type, array( 'select', 'multiselect' ) ) && ! empty( $data['custom_dropdown_options_source'] ) ) {
|
||||
|
||||
if ( ! empty( $data['custom_dropdown_options_source'] ) && in_array( $type, array( 'select', 'multiselect' ), true ) ) {
|
||||
if ( $this->is_source_blacklisted( $data['custom_dropdown_options_source'] ) ) {
|
||||
return $arr_options;
|
||||
}
|
||||
@@ -1481,7 +1480,6 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$arr_options = call_user_func( $data['custom_dropdown_options_source'] );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return $arr_options;
|
||||
|
||||
Reference in New Issue
Block a user