From 84b10a3fb5a4c4ce41f1d26f08ba50cbf0155750 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 1 Apr 2012 15:37:10 +0200 Subject: [PATCH] (bug 17615) nosummary option should be reassigned on preview/captcha Change-Id: I12f1cf37b7a093ca9f5b949e41fc482c6b7fb5fc --- RELEASE-NOTES-1.20 | 1 + includes/EditPage.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index 40dbb32a12..3d9d333fb1 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -27,6 +27,7 @@ production. * (bug 30963) Option on Special:Prefixindex and Special:Allpages to not show redirects. * (bug 18062) new message when edit or create the local page of a shared file * (bug 22870) Separate interface message when creating a page +* (bug 17615) nosummary option should be reassigned on preview/captcha === Bug fixes in 1.20 === * (bug 30245) Use the correct way to construct a log page title. diff --git a/includes/EditPage.php b/includes/EditPage.php index 5e3a964842..0b879c153f 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1801,6 +1801,11 @@ class EditPage { ); } + # When the summary is hidden, also hide them on preview/show changes + if( $this->nosummary ) { + $wgOut->addHTML( Html::hidden( 'nosummary', true ) ); + } + # If a blank edit summary was previously provided, and the appropriate # user preference is active, pass a hidden tag as wpIgnoreBlankSummary. This will stop the # user being bounced back more than once in the event that a summary -- 2.20.1