Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -20,6 +20,8 @@ |
21 | 21 | "movepage-moved" |
22 | 22 | * (bug 34841) Edit links are no longer displayed when display old page versions |
23 | 23 | * (bug 34889) User name should be normalized on Special:Contributions |
| 24 | +* (bug 35051) If heading has a trailing space after == then its name is not |
| 25 | + preloaded into edit summary on section edit |
24 | 26 | |
25 | 27 | === Configuration changes in 1.19 === |
26 | 28 | * Removed SkinTemplateSetupPageCss hook; use BeforePageDisplay instead. |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1872,7 +1872,7 @@ |
1873 | 1873 | * @return Mixed|string or false |
1874 | 1874 | */ |
1875 | 1875 | public static function extractSectionTitle( $text ) { |
1876 | | - preg_match( "/^(=+)(.+)\\1(\n|$)/i", $text, $matches ); |
| 1876 | + preg_match( "/^(=+)(.+)\\1\\s*(\n|$)/i", $text, $matches ); |
1877 | 1877 | if ( !empty( $matches[2] ) ) { |
1878 | 1878 | global $wgParser; |
1879 | 1879 | return $wgParser->stripSectionName( trim( $matches[2] ) ); |