Updated patch by ^demon; previous versions by HappyDog & Alexander
https://bugzilla.wikimedia.org/attachment.cgi?id=4755
* (bug 6813) Don't break HTML validator when using trackbacks
* Fix for size checks on SVG images with global 'stroke-width' attribute
* (bug 11874) Inline CSS with !important no longer borken
+* (bug 1600) Strip extra == section markup == in new-comment field
=== API changes in 1.13 ===
$this->mMetaData = rtrim( $request->getText( 'metadata' ) );
# Truncate for whole multibyte characters. +5 bytes for ellipsis
$this->summary = $wgLang->truncate( $request->getText( 'wpSummary' ), 250 );
+
+ # Remove extra headings and whitespace from summaries and new sections.
+ $this->summary = trim(preg_replace('/^=+(.*?)=+$/', '$1', trim($this->summary)));
$this->edittime = $request->getVal( 'wpEdittime' );
$this->starttime = $request->getVal( 'wpStarttime' );