wiki.techinc.nl/includes/api
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
i18n Localisation updates from https://translatewiki.net. 2022-07-01 08:24:16 +02:00
Validator Use updated ObjectFactory namespace 2022-03-09 23:04:51 +00:00
ApiAMCreateAccount.php
ApiAuthManagerHelper.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiBase.php Pass int to ApiUsageException::newWithMessage()'s $httpCode param 2022-06-29 08:56:21 +00:00
ApiBlock.php Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
ApiBlockInfoTrait.php ApiBlockInfoTrait: Add formatted and relative times 2021-12-06 16:02:18 +00:00
ApiChangeAuthenticationData.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiChangeContentModel.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiCheckToken.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiClearHasMsg.php
ApiClientLogin.php
ApiComparePages.php Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
ApiContinuationManager.php phan: Upgrade mediawiki-phan-config to 0.11.1 and set minimum_target_php_version 2022-03-29 16:54:36 +00:00
ApiCSPReport.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiDelete.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiDisabled.php
ApiEditPage.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiEmailUser.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiErrorFormatter.php
ApiErrorFormatter_BackCompat.php
ApiExpandTemplates.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiFeedContributions.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiFeedRecentChanges.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiFeedWatchlist.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiFileRevert.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiFormatBase.php API: Use arrays when writing multiple HTML.php classes 2022-06-14 18:09:43 +00:00
ApiFormatFeedWrapper.php
ApiFormatJson.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiFormatNone.php
ApiFormatPhp.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiFormatRaw.php
ApiFormatXml.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiFormatXmlRsd.php
ApiHelp.php API: Use arrays when writing multiple HTML.php classes 2022-06-14 18:09:43 +00:00
ApiHelpParamValueMessage.php
ApiHookRunner.php
ApiImageRotate.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiImport.php Do minor code cleanup 2022-06-24 13:52:42 +02:00
ApiImportReporter.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
ApiLinkAccount.php
ApiLogin.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiLogout.php
ApiMain.php API: Use arrays when writing multiple HTML.php classes 2022-06-14 18:09:43 +00:00
ApiManageTags.php Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
ApiMergeHistory.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiMessage.php
ApiMessageTrait.php Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
ApiModuleManager.php Use updated ObjectFactory namespace 2022-03-09 23:04:51 +00:00
ApiMove.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiOpenSearch.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiOpenSearchFormatJson.php
ApiOptions.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiPageSet.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiParamInfo.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiParse.php Fix edit API adding empty section title when creating new pages 2022-07-05 21:06:06 +00:00
ApiPatrol.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiProtect.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiPurge.php api: Replace deprecated ApiPageSet::getGoodTitles in ApiPurge 2022-02-11 23:57:48 +01:00
ApiQuery.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryAllCategories.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryAllDeletedRevisions.php Do minor code cleanup 2022-06-24 13:52:42 +02:00
ApiQueryAllImages.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryAllLinks.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryAllMessages.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryAllPages.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryAllRevisions.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryAllUsers.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryAuthManagerInfo.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryBacklinks.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryBacklinksprop.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryBase.php Remove ApiQueryBase::prefixedTitlePartToKey 2022-06-17 20:30:55 +02:00
ApiQueryBlockInfoTrait.php
ApiQueryBlocks.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryCategories.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryCategoryInfo.php
ApiQueryCategoryMembers.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryContributors.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryDeletedRevisions.php Do minor code cleanup 2022-06-24 13:52:42 +02:00
ApiQueryDeletedrevs.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryDisabled.php
ApiQueryDuplicateFiles.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryExternalLinks.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryExtLinksUsage.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryFilearchive.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryFileRepoInfo.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryGeneratorBase.php Allow int on ApiQueryGeneratorBase::setContinueEnumParameter 2021-09-26 13:51:49 +02:00
ApiQueryImageInfo.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryImages.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryInfo.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryIWBacklinks.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryIWLinks.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryLangBacklinks.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryLangLinks.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryLanguageinfo.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryLinks.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryLogEvents.php Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
ApiQueryMyStashedFiles.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryPagePropNames.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryPageProps.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryPagesWithProp.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryPrefixSearch.php
ApiQueryProtectedTitles.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryQueryPage.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryRandom.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryRecentChanges.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryRevisions.php Merge "Remove index detection 'rev_page_timestamp'" 2022-07-03 17:27:35 +00:00
ApiQueryRevisionsBase.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQuerySearch.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQuerySiteinfo.php Ensure core compatibility with Parsoid external link attributes support 2022-06-24 19:12:43 -04:00
ApiQueryStashImageInfo.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryTags.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryTokens.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryUserContribs.php Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
ApiQueryUserInfo.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryUsers.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiQueryWatchlist.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiQueryWatchlistRaw.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiRawMessage.php
ApiRemoveAuthenticationData.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiResetPassword.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiResult.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
ApiRevisionDelete.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiRollback.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiRsd.php
ApiSerializable.php
ApiSetNotificationTimestamp.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiSetPageLanguage.php Do minor code cleanup 2022-06-24 13:52:42 +02:00
ApiStashEdit.php Remove ApiStashEdit::parseAndStash 2022-06-16 20:05:21 +02:00
ApiTag.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiUnblock.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiUndelete.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiUpload.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiUsageException.php Revert "Introduce AbstractLocalizedException" 2021-09-14 19:01:21 +00:00
ApiUserrights.php api: Replace numerous more deprecated constants 2022-06-06 02:24:41 +01:00
ApiValidatePassword.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
ApiWatch.php Use MainConfigNames instead of string literals, #2 2022-04-13 18:55:46 +03:00
ApiWatchlistTrait.php
IApiMessage.php Fix typos in comments (I-J) 2021-12-30 20:38:04 +05:30
SearchApi.php api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00