Index: trunk/phase3/includes/Title.php |
— | — | @@ -1358,6 +1358,11 @@ |
1359 | 1359 | $dbw->delete( 'protected_titles', array( 'pt_namespace' => $namespace, |
1360 | 1360 | 'pt_title' => $title ), __METHOD__ ); |
1361 | 1361 | } |
| 1362 | + if($dbw->affectedRows() == 0) { |
| 1363 | + //No Change |
| 1364 | + return true; |
| 1365 | + } |
| 1366 | + |
1362 | 1367 | # Update the protection log |
1363 | 1368 | $log = new LogPage( 'protect' ); |
1364 | 1369 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -410,6 +410,8 @@ |
411 | 411 | account creation. |
412 | 412 | * (bug 3481) Pages moved shortly after creation are shown at their new title |
413 | 413 | on Special:Newpages. |
| 414 | +* (bug 12716) Trying to unprotect a title that isn't protected no longer |
| 415 | + generates a log entry. |
414 | 416 | |
415 | 417 | === API changes in 1.13 === |
416 | 418 | |