Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -542,6 +542,9 @@ |
543 | 543 | $this->mMetaData = rtrim( $request->getText( 'metadata' ) ); |
544 | 544 | # Truncate for whole multibyte characters. +5 bytes for ellipsis |
545 | 545 | $this->summary = $wgLang->truncate( $request->getText( 'wpSummary' ), 250 ); |
| 546 | + |
| 547 | + # Remove extra headings and whitespace from summaries and new sections. |
| 548 | + $this->summary = trim(preg_replace('/^=+(.*?)=+$/', '$1', trim($this->summary))); |
546 | 549 | |
547 | 550 | $this->edittime = $request->getVal( 'wpEdittime' ); |
548 | 551 | $this->starttime = $request->getVal( 'wpStarttime' ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -126,6 +126,7 @@ |
127 | 127 | * (bug 6813) Don't break HTML validator when using trackbacks |
128 | 128 | * Fix for size checks on SVG images with global 'stroke-width' attribute |
129 | 129 | * (bug 11874) Inline CSS with !important no longer borken |
| 130 | +* (bug 1600) Strip extra == section markup == in new-comment field |
130 | 131 | |
131 | 132 | |
132 | 133 | === API changes in 1.13 === |