Merge "Section editing: strip links from heading text used for edit summary"

This commit is contained in:
jenkins-bot 2017-03-23 18:45:07 +00:00 committed by Gerrit Code Review
commit 21ec4e87a9

View file

@ -2028,7 +2028,9 @@ ve.init.mw.ArticleTarget.prototype.restoreEditSection = function () {
headingNode = $section.data( 'view' );
if ( $section.length && new mw.Uri().query.summary === undefined ) {
headingText = $section.text();
// Due to interactions with Translate, strip out mw-
// editsection from the heading.
headingText = $section.clone().find( 'span.mw-editsection' ).remove().end().text();
}
if ( headingNode ) {