On AbuseFilter workboard we have a task, T58371, where a user noticed that the edit summary is different from what you would expect if you perform the edit by adding a new section. In fact, while in page history (and user contribs, etc.) the displayed summary is /* New_section_name */ something, AbuseFilter simply receives something as summary, without the comment. The reason is that EditFilterMergedContent hook omits the comment for new sections, and it's probably added after the hook is run. I don't know whether this is intentional and/or fixable, however it would be better to already have the comment inside the summary when the hook is run, to get a result which would be more similar to what users see.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
EditPage: Disentangle edit summary and section title | mediawiki/core | master | +91 -132 |
Related Objects
Related Objects
- Mentioned In
- T311533: When an extension prevents page creation with a new section, "new section" appears in the subject box as if it was the summary
T208092: Implement "Creating new section" variable
T58371: Various variables including "summary" "new_wikitext" for section=new are not calculated correctly - Mentioned Here
- T58371: Various variables including "summary" "new_wikitext" for section=new are not calculated correctly
Event Timeline
Comment Actions
Change 814003 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):
[mediawiki/core@master] EditPage: Disentangle edit summary and section title
Comment Actions
Change 814003 merged by jenkins-bot:
[mediawiki/core@master] EditPage: Disentangle edit summary and section title