From: Brion Vibber Date: Mon, 1 Dec 2008 20:12:01 +0000 (+0000) Subject: * (bug 12647) Allow autogenerated edit summary messages to be blanked with '-' X-Git-Tag: 1.31.0-rc.0~44154 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=80d2a0d3ae1c2d0a134bf7d89814dff9b6c4414d;p=lhc%2Fweb%2Fwiklou.git * (bug 12647) Allow autogenerated edit summary messages to be blanked with '-' --- 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 );