Index: trunk/phase3/includes/api/ApiRollback.php |
— | — | @@ -55,7 +55,10 @@ |
56 | 56 | if(!$titleObj->exists()) |
57 | 57 | $this->dieUsageMsg(array('notanarticle')); |
58 | 58 | |
59 | | - $username = User::getCanonicalName($params['user']); |
| 59 | + #We need to be able to revert IPs, but getCanonicalName rejects them |
| 60 | + $username = User::isIP($params['user']) |
| 61 | + ? $params['user'] |
| 62 | + : User::getCanonicalName($params['user']); |
60 | 63 | if(!$username) |
61 | 64 | $this->dieUsageMsg(array('invaliduser', $params['user'])); |
62 | 65 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -222,6 +222,7 @@ |
223 | 223 | * (bug 15466) Added action=purge |
224 | 224 | * (bug 15486) action=block ignores autoblock parameter |
225 | 225 | * (bug 15492) added rcprop=loginfo to list=recentchanges |
| 226 | +* (bug 15527) action=rollback can now revert anonymous editors |
226 | 227 | |
227 | 228 | === Languages updated in 1.14 === |
228 | 229 | |