Page MenuHomePhabricator

show anoneditwarning also by preview
Closed, ResolvedPublic

Description

when editing a page as anon, the message anoneditwarning is shown, but when change to the preview of that page, the message is lost. By change to 'show changes' the message is shown.

Please show the message in all cases. Thanks.


Version: unspecified
Severity: enhancement

Details

Reference
bz21520

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:56 PM
bzimport set Reference to bz21520.
bzimport added a subscriber: Unknown Object (MLST).

since r12948 there is an unequal for preview-form:

} elseif( $wgUser->isAnon() && $this->formtype != 'preview' ) {
$wgOut->wrapWikiMsg( '<div id="mw-anon-edit-warning">$1</div>', 'anoneditwarning' );

But why?

Probably because Rob didn'tthink worth adding the warning also for previewing.
I'd add a mw-anon-preview-warning message

Added anonpreviewwarning message on r64367.