Fix permalink base name format and redirect loop in profile page

This commit is contained in:
champsupertramp
2016-03-21 23:42:37 +08:00
parent 432c0fa01a
commit 5a74e0d7de
5 changed files with 68 additions and 16 deletions
+2 -1
View File
@@ -893,10 +893,11 @@ class UM_User {
{
return $matches[0];
}
$ids = get_users(array( 'fields' => 'ID', 'meta_key' => 'full_name','meta_value' => $value ,'meta_compare' => '=') );
if ( isset( $ids[0] ) )
return $ids[0];
return false;
}