wiki.techinc.nl/includes/content
Bartosz Dziewoński add6c49e01 Fix edit API adding empty section title when creating new pages
WikitextContent methods replaceSection() (used when adding a section
to an existing page) and addSectionHeader() (used when creating a new
page) behaved inconsistently - the former would omit the heading
syntax when the section title was empty, but the latter would not.
They both omit it now.

Some callers of addSectionHeader() handled this case, but others did
not, which caused T311489. (I am removing the checks now, since the
change makes them redundant.)

Bug: T311489
Change-Id: Icd59bcf2b75bf50865f19fac92bddabe0c183dcc
2022-07-05 21:06:06 +00:00
..
Hook Remove deprecated hook 'SecondaryDataUpdate'. 2021-07-21 17:36:24 -07:00
Renderer Replace deprecated calls ParserOptions::newCanonical( 'canonical' ) 2022-06-16 14:22:24 +01:00
Transform Move Content::preloadTransform to ContentHandler 2021-08-17 15:17:34 +00:00
AbstractContent.php Replace deprecated calls ParserOptions::newCanonical( 'canonical' ) 2022-06-16 14:22:24 +01:00
CodeContentHandler.php
Content.php Remove support for $wgMaxRedirect 2022-05-06 10:52:56 +02:00
ContentHandler.php Remove ContentHandler::cleanupHandlersCache 2022-06-20 12:12:09 +02:00
ContentHandlerFactory.php Do minor code cleanup 2022-06-24 13:52:42 +02:00
ContentModelChange.php page: Improve class documentation briefs 2022-04-12 00:49:41 +00:00
CssContent.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
CssContentHandler.php Migrate risky callers of MediaWikiServices::getParser() 2022-07-05 14:09:36 +10:00
FallbackContent.php content: Remove UnknownContent/UnknownContentHandler class alias 2022-05-29 06:20:45 +00:00
FallbackContentHandler.php content: Remove UnknownContent/UnknownContentHandler class alias 2022-05-29 06:20:45 +00:00
FileContentHandler.php
IContentHandlerFactory.php
JavaScriptContent.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
JavaScriptContentHandler.php Migrate risky callers of MediaWikiServices::getParser() 2022-07-05 14:09:36 +10:00
JsonContent.php content: Document use cases for JsonContent 2022-02-08 22:39:45 +00:00
JsonContentHandler.php Remove deprecated WikiPage::doEditContent() 2022-06-03 21:43:31 +00:00
MessageContent.php Move Content::getParserOutput & AbstractContent::fillParserOutput to ContentHandler 2021-09-29 13:10:51 +03:00
TextContent.php Use MainConfigNames instead of string literals, #3 2022-04-26 14:31:26 +03:00
TextContentHandler.php Migrate risky callers of MediaWikiServices::getParser() 2022-07-05 14:09:36 +10:00
ValidationParams.php Move Content::prepareSave to ContentHandler 2021-11-11 15:40:42 +02:00
WikitextContent.php Fix edit API adding empty section title when creating new pages 2022-07-05 21:06:06 +00:00
WikitextContentHandler.php Migrate risky callers of MediaWikiServices::getParser() 2022-07-05 14:09:36 +10:00
WikiTextStructure.php Do minor code cleanup 2022-06-24 13:52:42 +02:00