⚓ T17521 Use new section summary when adding a new section also creates the page


Article Images

Use new section summary when adding a new section also creates the page

Author: matthew.britton

Description:
Currently, if you use "new section" to add a section to a page that does not exist, thus creating the page, the section title is used as the summary. This used to be the case for all new sections, however [[MediaWiki:Newsectionsummary]] is now used, which provides a link to the section. It should also be used when adding a section creates the page.


Version: 1.18.x
Severity: enhancement

Event Timeline

Functional patch

Fixes the above. Also made it so it redirects to title#sectionname not just title, for all the good that'll do :P Still, useful for consistency.

attachment 15521.patch ignored as obsolete

sumanah wrote:

I'm sorry, but the code base has changed enough in the last eight months that your patch doesn't apply cleanly any more. Do you have the time to update it and reattach? Thanks, and sorry again.

Functional patch (updated to new line numbers)

Yeah, it just needed updating to the new line numbers.

Stupid SVN. Fixed now (and re-tested: still works as expected).

Attached:

Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits