Version 1.0.43

This commit is contained in:
ultimatemember
2015-02-07 01:39:29 +02:00
parent bcffe8e193
commit 89ffec21f2
8 changed files with 97 additions and 83 deletions
+6 -4
View File
@@ -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 ) )
+1
View File
@@ -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
View File
@@ -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;