Page MenuHomePhabricator

Initial edit summary only strips first wikilink
Closed, ResolvedPublic

Description

When editing in source mode, the initial edit summary that contains the section name only strips the first wikilink. For example when editing the heading == [[B]] [[B]] [bitcoin:foo bar] [bitcoin:foo bar] == the summary /* B [[B]] bar [bitcoin:foo bar] */ is produced instead of /* B B bar bar */ which is produced by the non-visual edit form.

Event Timeline

Change 669498 had a related patch set uploaded (by BrandonXLF; owner: BrandonXLF):
[mediawiki/extensions/VisualEditor@master] Strip all wikilinks and quotes for initial edit summary

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

BrandonXLF renamed this task from Initial edit summary doesn't strip out all links and quotes to Initial edit summary doesn't strip out all wikilinks.Mar 7 2021, 10:54 PM
BrandonXLF renamed this task from Initial edit summary doesn't strip out all wikilinks to Initial edit summary only strips first wikilink.
BrandonXLF updated the task description. (Show Details)

Thanks for the patch, that's a silly mistake.

Change 669498 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Strip all wikilinks for initial edit summary

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