From 80d2a0d3ae1c2d0a134bf7d89814dff9b6c4414d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 1 Dec 2008 20:12:01 +0000 Subject: [PATCH] * (bug 12647) Allow autogenerated edit summary messages to be blanked with '-' --- RELEASE-NOTES | 1 + includes/Article.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 428e567d14..f033e4dc20 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -384,6 +384,7 @@ The following extensions are migrated into MediaWiki 1.14: later that day, the IP still couldn't create another account, because it had marked them as having created another account, when their last account creation had actually failed. +* (bug 12647) Allow autogenerated edit summary messages to be blanked with '-' === API changes in 1.14 === diff --git a/includes/Article.php b/includes/Article.php index 262806e26c..1578e88d7c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2046,6 +2046,11 @@ class Article { else $reason = wfMsgForContent( 'excontent', '$1' ); } + + if( $reason == '-' ) { + // Allow these UI messages to be blanked out cleanly + return ''; + } // Replace newlines with spaces to prevent uglyness $contents = preg_replace( "/[\n\r]/", ' ', $contents ); -- 2.20.1