wiki.techinc.nl/includes
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
..
actions Merge "Remove index detection 'rev_page_timestamp'" 2022-07-03 17:27:35 +00:00
api Fix edit API adding empty section title when creating new pages 2022-07-05 21:06:06 +00:00
auth Merge "auth: Introduce quick permissions checks for AuthManager" 2022-06-01 23:22:41 +00:00
block Merge "Respect the wiki when performing autoblocks" 2022-06-30 22:12:37 +00:00
cache language: Add missing @ingroup, subgroup "Languages" and ungroup files 2022-06-28 17:12:46 -07:00
changes RecentChange: Make join to comment table also straight 2022-06-30 23:38:30 +02:00
changetags ChangeTags: Remove some excessive indentation 2022-06-30 16:00:21 +01:00
collation IcuCollation: Fix some typos and a broken link in a comment 2022-05-21 02:07:42 -04:00
CommentFormatter Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
composer Pass link in a map 2021-12-23 17:54:05 +00:00
config phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
content Fix edit API adding empty section title when creating new pages 2022-07-05 21:06:06 +00:00
context tests: Expand DerivativeContextTest 2022-07-02 14:43:55 +02:00
dao Simplify assertion for false around wiki id and domain id 2022-06-18 09:49:13 +02:00
db deferred: Remove unused $mode of internal tryOpportunisticExecute 2022-06-17 18:57:52 +01:00
debug Do minor code cleanup 2022-06-24 13:52:42 +02:00
deferred deferred: Remove unused $mode and jobify() from internal doUpdates 2022-06-21 23:03:39 +00:00
diff Mark WordLevelDiff as newable for now 2022-06-30 16:51:06 +02:00
edit ParsoidOutputStash: make storage backend configurable. 2022-06-14 14:11:37 +01:00
editpage Replace deprecated wfReadOnly/wfReadOnlyReason 2022-06-20 15:35:24 +00:00
exception Do minor code cleanup 2022-06-24 13:52:42 +02:00
export Remove references to legacy page_restrictions field in page table 2022-05-09 11:20:53 +02:00
externalstore Remove ExternalStoreDB::getSlave 2022-06-17 09:40:28 +02:00
filebackend docs: Move, clarify and cross-ref "DI Principles" for easy reference 2022-06-06 14:31:29 +00:00
filerepo Merge "Do minor code cleanup" 2022-06-26 09:34:04 +00:00
gallery Set alt in galleries, despite caption being visible 2022-06-07 18:20:26 -04:00
historyblob Merge "DiffHistoryBlob: Remove workarounds for old PECL xdiff versions" 2022-06-09 16:14:42 +00:00
Hook TempUser CentralAuth integration 2022-05-10 09:06:05 +10:00
HookContainer Deprecate SkinTemplateNavigation::SpecialPage and SkinTemplateNavigation hooks in favor of SkinTemplateNavigation::Universal 2022-07-05 16:57:57 +00:00
htmlform HTMLFormField: Fix Phan suppression about mClassWithButton 2022-06-17 21:47:59 +02:00
http Use MainConfigNames instead of string literals, #3 2022-04-26 14:31:26 +03:00
import Merge "Remove unsed code snippets from ImportableOldRevisionImporter" 2022-05-21 14:13:36 +00:00
installer Localisation updates from https://translatewiki.net. 2022-07-04 08:06:43 +02:00
interwiki Merge "interwiki: Adjust documentation for InterwikiLookup::getAllPrefixes" 2022-03-09 22:28:04 +00:00
jobqueue Hard deprecate JobQueueGroup::singleton()/destroySingletons() 2022-06-24 18:48:31 +02:00
json Add return type to jsonSerialize() 2022-07-02 15:34:02 +00:00
language language: Add missing @ingroup, subgroup "Languages" and ungroup files 2022-06-28 17:12:46 -07:00
languages Add Campidanese Sardinian (sro) to Names.php 2022-07-01 13:12:40 +00:00
libs Introduce new WRStats library for write-read stats 2022-07-05 10:35:19 +10:00
linkeddata
linker Use MainConfigNames instead of string literals, #3 2022-04-26 14:31:26 +03:00
logging Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
mail notifications: prevent log spam when invalid user object listed. 2022-05-22 11:02:47 +00:00
media Merge "FormatMetadata: PHP Notice: Array to string conversion" 2022-07-05 15:29:06 +00:00
Message Add Message/MessageValue user group member parameter type 2021-11-16 11:24:35 -05:00
Navigation
objectcache objectcache: Optimise SqlBagOStuff::incrWithInit with WRITE_BACKGROUND 2022-07-04 22:43:45 +00:00
page Merge "Remove index detection 'rev_page_timestamp'" 2022-07-03 17:27:35 +00:00
pager IndexPager: Wrap inactive paging links in <span class="…"> 2022-05-23 19:36:50 +00:00
ParamValidator/TypeDef Fix many typos in comments 2022-05-10 12:46:11 +00:00
parser Deprecate Parser::getFreshParser() 2022-07-05 14:09:36 +10:00
password Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
Permissions Fix typos 2022-06-30 09:44:00 +10:00
poolcounter poolcounter: Avoid calling parent::doWork in PoolWorkArticleView classes 2022-05-13 20:36:25 +00:00
preferences Deprecate Parser::getFreshParser() 2022-07-05 14:09:36 +10:00
profiler profiler: Remove deprecated 'trace' feature in SectionProfiler 2022-04-29 11:18:50 +00:00
rcfeed Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
registration Collect autoloader info in ExtensionProcessor 2022-06-07 17:39:00 +02:00
ResourceLoader Merge "ResourceLoader: Inject HookContainer & UserOptionsLookup to getUserDefaults" 2022-07-01 01:08:55 +00:00
Rest Merge "Clarify handling of verifier headers in POST and PUT" 2022-07-05 04:01:04 +00:00
Revision Do minor code cleanup 2022-06-24 13:52:42 +02:00
revisiondelete Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
revisionlist Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
search Start catch blocks on the same line as the preceding } 2022-06-23 00:22:35 +00:00
session Replace deprecated wfReadOnly/wfReadOnlyReason 2022-06-20 15:35:24 +00:00
Settings Merge "Support etcd as a source for SettingsLoader" 2022-06-30 16:52:51 +00:00
shell ShellboxClientFactory::getUrl(): Check if $this->key is null 2022-06-28 22:25:00 +01:00
site Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
skins Deprecate SkinTemplateNavigation::SpecialPage and SkinTemplateNavigation hooks in favor of SkinTemplateNavigation::Universal 2022-07-05 16:57:57 +00:00
sparql Replace some more usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 20:27:46 +00:00
specialpage Deprecate SkinTemplateNavigation::SpecialPage and SkinTemplateNavigation hooks in favor of SkinTemplateNavigation::Universal 2022-07-05 16:57:57 +00:00
specials Merge "SpecialWithoutInterwiki: Don't pass null through to Title::capitalize()" 2022-07-03 00:23:12 +00:00
Storage Add return type to jsonSerialize() 2022-07-02 15:34:02 +00:00
templates Remove errorbox class 2022-02-11 22:22:23 +00:00
tidy Do minor code cleanup 2022-06-24 13:52:42 +02:00
title Use MainConfigNames instead of string literals, #3 2022-04-26 14:31:26 +03:00
upload UploadBase::setTempFile() handle $tempPath being passed as null 2022-07-01 14:34:49 +00:00
user Merge "Extract RateLimiter from User" 2022-06-28 06:19:17 +00:00
utils Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
watcheditem Fix many typos in comments 2022-05-10 12:46:11 +00:00
watchlist Merge "Use User::isRegistered for readability instead of ::getId falsy check" 2022-05-23 04:06:10 +00:00
widget Support namespace dropdown 'in-user-lang' option in HTMLForm and OOUI widget 2022-05-13 20:29:44 +00:00
xml Fix many typos in comments 2022-05-10 12:46:11 +00:00
.htaccess
ActorMigration.php
ActorMigrationBase.php Use User::isRegistered for readability instead of ::getId falsy check 2022-04-29 21:15:57 +02:00
AutoLoader.php Merge "Collect autoloader info in ExtensionProcessor" 2022-06-08 06:11:58 +00:00
BadFileLookup.php Use getWithSetCallback() instead of get() + set() 2021-11-18 18:58:13 +00:00
BootstrapHelperFunctions.php Setup.php: clarify the use of $IP. 2022-05-03 11:53:05 +02:00
CategoriesRdf.php phan: Disable scalar_implicit_cast setting 2022-03-18 18:52:24 +00:00
Category.php Category: Add return type to count methods 2022-02-07 06:30:47 +00:00
CategoryViewer.php Merge "mediawiki.action.styles: Bundle in categoryPage.less" 2022-05-23 04:43:59 +00:00
CommentStore.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
CommentStoreComment.php
config-merge-strategies.php Turn DefaultSettings.php into a deprecated stub 2022-05-17 16:50:56 +02:00
config-schema.php Fix config type of SessionProviders 2022-07-05 15:42:35 +02:00
config-vars.php Introduce new WRStats library for write-read stats 2022-07-05 10:35:19 +10:00
ConfiguredReadOnlyMode.php Use type hints in ReadOnlyMode/ConfiguredReadOnlyMode and improve docs 2022-06-20 19:49:51 +02:00
ContentSecurityPolicy.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
DefaultSettings.php Turn DefaultSettings.php into a deprecated stub 2022-05-17 16:50:56 +02:00
Defines.php Use UrlUtils in Parser 2022-04-28 17:14:51 +03:00
DeprecatedGlobal.php
DerivativeRequest.php
DevelopmentSettings.php debug: Fix $wgDebugRawPage to work with PSR-3 debug logging 2022-04-13 00:29:40 +00:00
DummyLinker.php
EditPage.php Fix edit API adding empty section title when creating new pages 2022-07-05 21:06:06 +00:00
Emptiable.php
EventRelayerGroup.php
ExtensionInfo.php
FauxRequest.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
FauxRequestUpload.php
FauxResponse.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
FeedUtils.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
FileDeleteForm.php SpecialDelete: check permissions again when deleting 2022-04-11 12:47:47 -04:00
ForeignResourceManager.php Avoid use of null, bool or Status in log messages 2022-03-02 22:45:10 +00:00
ForkController.php Hard deprecate JobQueueGroup::singleton()/destroySingletons() 2022-06-24 18:48:31 +02:00
FormOptions.php Type hints for ArrayAccess and JsonSerializable 2022-04-11 15:06:27 +03:00
GitInfo.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
GlobalFunctions.php Hard deprecate wfReadOnly/wfReadOnlyReason 2022-06-28 21:21:51 +02:00
HeaderCallback.php
Hooks.php
Html.php Get the MainConfig from MediaWikiServices instead of RequestContext 2022-05-24 21:54:21 +00:00
HtmlHelper.php Add HtmlHelper::modifyElements() for small HTML modifications 2022-05-08 15:55:00 +02:00
Linker.php Merge "Remove index detection 'rev_page_timestamp'" 2022-07-03 17:27:35 +00:00
LinkFilter.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
ListToggle.php
MagicWord.php Fix various documentation related to null types 2022-02-26 10:31:24 +01:00
MagicWordArray.php
MagicWordFactory.php Add {{=}} as a built-in magic word 2022-05-20 13:08:20 -04:00
MainConfigNames.php Introduce new WRStats library for write-read stats 2022-07-05 10:35:19 +10:00
MainConfigNames.template Generate config name constants. 2022-03-18 10:32:58 +01:00
MainConfigSchema.php Fix config type of SessionProviders 2022-07-05 15:42:35 +02:00
MediaWiki.php Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
MediaWikiServices.php Merge "Deprecate Parser::getFreshParser()" 2022-07-05 04:53:47 +00:00
MediaWikiVersionFetcher.php
MergeHistory.php Start clean up of revision_actor_temp table 2022-05-23 15:37:42 +00:00
MovePage.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
MWGrants.php
MWTimestamp.php Hard-deprecate MWTimestamp::getHumanTimestamp 2022-06-20 02:20:25 +00:00
NoLocalSettings.php
OrderedStreamingForkController.php Stop using is_resource() where possible 2022-01-26 10:03:23 +11:00
OutputHandler.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
OutputPage.php Use SelectQueryBuilder in OutputPage 2022-07-05 13:59:51 +02:00
PageProps.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
PathRouter.php
PHPVersionCheck.php Prepare active branch following REL1_38 cut, labelling as 1.39-alpha 2022-03-14 21:50:17 -04:00
Pingback.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
ProtectionForm.php Replace deprecated wfReadOnly/wfReadOnlyReason 2022-06-20 15:35:24 +00:00
ProxyLookup.php
RawMessage.php
ReadOnlyMode.php Use type hints in ReadOnlyMode/ConfiguredReadOnlyMode and improve docs 2022-06-20 19:49:51 +02:00
ServiceWiring.php Merge "Deprecate Parser::getFreshParser()" 2022-07-05 04:53:47 +00:00
Setup.php exception: Inject wgShowExceptionDetails from Setup.php 2022-05-22 19:46:18 +00:00
SetupDynamicConfig.php Turn DefaultSettings.php into a deprecated stub 2022-05-17 16:50:56 +02:00
SiteConfiguration.php Use str_starts_with/str_ends_with 2022-05-02 10:59:58 +03:00
SiteStats.php Allow sharding in site_stats update 2022-05-30 20:46:08 +02:00
SiteStatsInit.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
Status.php ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
StreamFile.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
StubGlobalUser.php
StubObject.php Use updated ObjectFactory namespace 2022-03-09 23:04:51 +00:00
StubUserLang.php
TemplateParser.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
TemplatesOnThisPageFormatter.php TemplatesOnThisPageFormatter: Use PageIdentity 2022-05-23 19:38:40 +02:00
Title.php Hard deprecate Title::getNotificationTimestamp 2022-06-25 20:12:21 +02:00
TitleArray.php
TitleArrayFromResult.php Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
TitleFactory.php Hard deprecate TitleFactory::newFromIDs and Title::newFromIDs 2021-11-29 14:23:26 -05:00
TrackingCategories.php Add {{=}} as a built-in magic word 2022-05-20 13:08:20 -04:00
WebRequest.php Remove WebRequest::checkUrlExtension 2022-06-20 12:07:16 +02:00
WebRequestUpload.php
WebResponse.php Use name constants to access config settings. 2022-04-07 13:02:28 +02:00
WebStart.php Setup.php: Remove internal use of $IP 2022-05-13 16:32:09 +00:00
WikiMap.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
WikiReference.php Remove or replace usages of "sane" 2021-11-22 13:35:17 +00:00