Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/73519


Change subject: Do not parse param of newsectionsummary on new section preview
......................................................................

Do not parse param of newsectionsummary on new section preview

Summary preview of sectio=new shows expand templates. Parsing the
summary text as raw param avoids this. Other usages of
'newsectionsummary' does it the same way.

Bug: 40453
Change-Id: I1fd3adfc64c664dfd490c11bfe60924fa215875c
---
M includes/EditPage.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/19/73519/1

diff --git a/includes/EditPage.php b/includes/EditPage.php
index 96cc908..9f264d0 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -2540,7 +2540,7 @@
                global $wgParser;
 
                if ( $isSubjectPreview ) {
-                       $summary = wfMessage( 'newsectionsummary', 
$wgParser->stripSectionName( $summary ) )
+                       $summary = wfMessage( 'newsectionsummary' )->rawParams( 
$wgParser->stripSectionName( $summary ) )
                                ->inContentLanguage()->text();
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/73519
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1fd3adfc64c664dfd490c11bfe60924fa215875c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to