Summary preview of section=new shows expand templates.
Using the summary text as raw param avoids this.
Other usages of 'newsectionsummary' do it the same way.
Bug: 40453
Change-Id: I1fd3adfc64c664dfd490c11bfe60924fa215875c
global $wgParser;
if ( $isSubjectPreview ) {
- $summary = wfMessage( 'newsectionsummary', $wgParser->stripSectionName( $summary ) )
+ $summary = wfMessage( 'newsectionsummary' )->rawParams( $wgParser->stripSectionName( $summary ) )
->inContentLanguage()->text();
}