mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Version 1.0.43
This commit is contained in:
+6
-4
@@ -33,10 +33,12 @@ class UM_Access {
|
||||
function get_meta( $post_id ) {
|
||||
global $post;
|
||||
$meta = get_post_custom( $post_id );
|
||||
foreach ($meta as $k => $v){
|
||||
if ( strstr($k, '_um_') ) {
|
||||
$k = str_replace('_um_', '', $k);
|
||||
$array[$k] = $v[0];
|
||||
if ( isset( $meta ) && is_array( $meta ) ) {
|
||||
foreach ($meta as $k => $v){
|
||||
if ( strstr($k, '_um_') ) {
|
||||
$k = str_replace('_um_', '', $k);
|
||||
$array[$k] = $v[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( isset( $array ) )
|
||||
|
||||
@@ -119,6 +119,7 @@
|
||||
}
|
||||
$value = str_replace('https://https://','https://',$value);
|
||||
$value = str_replace('http://https://','https://',$value);
|
||||
$value = str_replace('https://http://','https://',$value);
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -21,10 +21,11 @@ class UM_User {
|
||||
|
||||
$this->preview = false;
|
||||
|
||||
// a list of keys that should be done on wp_update_user
|
||||
// a list of keys that should never be in wp_usermeta
|
||||
$this->update_user_keys = array(
|
||||
'user_email',
|
||||
'user_pass',
|
||||
'user_password',
|
||||
);
|
||||
|
||||
$this->target_id = null;
|
||||
|
||||
Reference in New Issue
Block a user