Permalink
Browse files

Merge pull request #59 from daidais/patch-2

Fix infinite loop / props @daidais
  • Loading branch information...
radgeek committed Jun 29, 2016
2 parents 5aacc5b + 4379b81 commit 30028f935b96369a79267865239a0dcfa7459031
Showing with 4 additions and 0 deletions.
  1. +4 −0 syndicatedpost.class.php
View
@@ -2240,6 +2240,10 @@ function author_id ($unfamiliar_author = 'create') {
// Add a random disambiguator
$userdata['user_login'] .= substr(md5(uniqid(microtime())), 0, 6);
break;
case 'user_nicename_too_long' :
// Add a limited 50 caracters user_nicename based on user_login
$userdata['user_nicename'] = mb_substr( $userdata['user_login'], 0, 50 );
break;
case 'existing_user_email' :
// No disassemble!
$parts = explode('@', $userdata['user_email'], 2);

0 comments on commit 30028f9

Please sign in to comment.