Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1401,8 +1401,12 @@ |
1402 | 1402 | |
1403 | 1403 | if ( wfReadOnly() ) { |
1404 | 1404 | $wgOut->wrapWikiMsg( "<div id=\"mw-read-only-warning\">\n$1\n</div>", array( 'readonlywarning', wfReadOnlyReason() ) ); |
1405 | | - } elseif ( $wgUser->isAnon() && $this->formtype != 'preview' ) { |
1406 | | - $wgOut->wrapWikiMsg( "<div id=\"mw-anon-edit-warning\">\n$1</div>", 'anoneditwarning' ); |
| 1405 | + } elseif ( $wgUser->isAnon() ) { |
| 1406 | + if ( $this->formtype != 'preview' ) { |
| 1407 | + $wgOut->wrapWikiMsg( "<div id=\"mw-anon-edit-warning\">\n$1</div>", 'anoneditwarning' ); |
| 1408 | + } else { |
| 1409 | + $wgOut->wrapWikiMsg( "<div id=\"mw-anon-preview-warning\">\n$1</div>", 'anonpreviewwarning' ); |
| 1410 | + } |
1407 | 1411 | } else { |
1408 | 1412 | if ( $this->isCssJsSubpage ) { |
1409 | 1413 | # Check the skin exists |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1,3 +1,4 @@ |
| 2 | + |
2 | 3 | <?php |
3 | 4 | /** |
4 | 5 | * This is the default English localisation file |
— | — | @@ -1190,6 +1191,7 @@ |
1191 | 1192 | 'showdiff' => 'Show changes', |
1192 | 1193 | 'anoneditwarning' => "'''Warning:''' You are not logged in. |
1193 | 1194 | Your IP address will be recorded in this page's edit history.", |
| 1195 | +'anonpreviewwarning' => "''You are not logged in. Saving will record your IP address in this page's edit history.''", |
1194 | 1196 | 'missingsummary' => "'''Reminder:''' You have not provided an edit summary. |
1195 | 1197 | If you click Save again, your edit will be saved without one.", |
1196 | 1198 | 'missingcommenttext' => 'Please enter a comment below.', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -67,6 +67,8 @@ |
68 | 68 | * (bug 22991) wgUserGroups JavaScript variable now reports * group for |
69 | 69 | anonymous users instead of null. |
70 | 70 | * (bug 22627) Remove PHP notice when deleting a page only hidden users edited. |
| 71 | +* (bug 21520) Anonymous previews now also gives a warning about not being |
| 72 | +logged in (anonpreviewwarning). |
71 | 73 | |
72 | 74 | == API changes in 1.17 == |
73 | 75 | * (bug 22738) Allow filtering by action type on query=logevent |