mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Compatibility with upcoming User Tags extension
This commit is contained in:
+3
-1
@@ -1559,7 +1559,9 @@ class UM_Fields {
|
||||
|
||||
$v = rtrim($v);
|
||||
|
||||
if ( is_string( $k ) ) {
|
||||
$use_keyword = apply_filters('um_multiselect_option_value', 0, $data['type'] );
|
||||
|
||||
if ( $use_keyword ) {
|
||||
$opt_value = $k;
|
||||
} else {
|
||||
$opt_value = $v;
|
||||
|
||||
+5
-1
@@ -15,6 +15,7 @@ class UM_API {
|
||||
}
|
||||
|
||||
add_action('init', array(&$this, 'init'), 0);
|
||||
add_action('init', array(&$this, 'form'), 10);
|
||||
|
||||
add_action('init', array(&$this, 'load_addons') );
|
||||
|
||||
@@ -158,7 +159,6 @@ class UM_API {
|
||||
$this->datetime = new UM_DateTime();
|
||||
$this->chart = new UM_Chart();
|
||||
$this->builtin = new UM_Builtin();
|
||||
$this->form = new UM_Form();
|
||||
$this->files = new UM_Files();
|
||||
$this->taxonomies = new UM_Taxonomies();
|
||||
$this->validation = new UM_Validation();
|
||||
@@ -186,6 +186,10 @@ class UM_API {
|
||||
|
||||
}
|
||||
|
||||
function form() {
|
||||
$this->form = new UM_Form();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$ultimatemember = new UM_API();
|
||||
Reference in New Issue
Block a user