logged in (anonpreviewwarning).
* (bug 22991) wgUserGroups JavaScript variable now reports * group for
anonymous users instead of null.
* (bug 22627) Remove PHP notice when deleting a page only hidden users edited.
+* (bug 21520) Anonymous previews now also gives a warning about not being
+logged in (anonpreviewwarning).
== API changes in 1.17 ==
* (bug 22738) Allow filtering by action type on query=logevent
if ( wfReadOnly() ) {
$wgOut->wrapWikiMsg( "<div id=\"mw-read-only-warning\">\n$1\n</div>", array( 'readonlywarning', wfReadOnlyReason() ) );
- } elseif ( $wgUser->isAnon() && $this->formtype != 'preview' ) {
- $wgOut->wrapWikiMsg( "<div id=\"mw-anon-edit-warning\">\n$1</div>", 'anoneditwarning' );
+ } elseif ( $wgUser->isAnon() ) {
+ if ( $this->formtype != 'preview' ) {
+ $wgOut->wrapWikiMsg( "<div id=\"mw-anon-edit-warning\">\n$1</div>", 'anoneditwarning' );
+ } else {
+ $wgOut->wrapWikiMsg( "<div id=\"mw-anon-preview-warning\">\n$1</div>", 'anonpreviewwarning' );
+ }
} else {
if ( $this->isCssJsSubpage ) {
# Check the skin exists
+
<?php
/**
* This is the default English localisation file
'showdiff' => 'Show changes',
'anoneditwarning' => "'''Warning:''' You are not logged in.
Your IP address will be recorded in this page's edit history.",
+'anonpreviewwarning' => "''You are not logged in. Saving will record your IP address in this page's edit history.''",
'missingsummary' => "'''Reminder:''' You have not provided an edit summary.
If you click Save again, your edit will be saved without one.",
'missingcommenttext' => 'Please enter a comment below.',