wiki.techinc.nl/includes
Tim Starling d459add63d Introduce wfDeprecatedMsg()
Deprecating something means to say something nasty about it, or to draw
its character into question. For example, "this function is lazy and good
for nothing". Deprecatory remarks by a developer are generally taken as a
warning that violence will soon be done against the function in question.
Other developers are thus warned to avoid associating with the deprecated
function.

However, since wfDeprecated() was introduced, it has become obvious that
the targets of deprecation are not limited to functions. Developers can
deprecate literally anything: a parameter, a return value, a file
format, Mondays, the concept of being, etc. wfDeprecated() requires
every deprecatory statement to begin with "use of", leading to some
awkward sentences. For example, one might say: "Use of your mouth to
cough without it being covered by your arm is deprecated since 2020."

So, introduce wfDeprecatedMsg(), which allows deprecation messages to be
specified in plain text, with the caller description being optionally
appended. Migrate incorrect or gramatically awkward uses of wfDeprecated()
to wfDeprecatedMsg().

Change-Id: Ib3dd2fe37677d98425d0f3692db5c9e988943ae8
2020-06-22 14:34:39 +10:00
..
actions Add getExpiryInDays function in WatchedItem 2020-06-16 19:58:34 -05:00
api Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
auth Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
block BlockPermissionChecker: Clarify that 'unblockself' allows altering block 2020-06-16 16:11:24 +01:00
cache Swap null and is_int check to get the expected warn message 2020-06-19 17:25:03 +02:00
changes Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
changetags Pass function name to database functions 2020-06-07 14:16:52 +02:00
clientpool Remove terminating line breaks from wfDebugLog calls 2020-06-03 02:48:36 +00:00
collation Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
compat
composer Fix numerous PSR12.Properties.ConstantVisibility.NotFound 2020-05-11 01:59:00 +00:00
config
content ContentHandlerFactory: Inject LoggerInstance instead of using wfDebugLog 2020-06-01 22:37:12 +00:00
context Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
dao Fix numerous PSR12.Properties.ConstantVisibility.NotFound 2020-05-11 01:59:00 +00:00
db Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
debug Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
deferred Use HttpRequestFactory::createMultiClient() in core where possible 2020-06-02 10:51:43 +10:00
diff Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
edit
editpage [EditPage] Move AS_* status constants to a new interface 2020-05-30 11:59:03 -07:00
exception debug: Refactor from $levelName to $prefix in handleError() 2020-06-07 23:55:36 +01:00
export XmlDumpWriter: make invokeLenient take a closure 2020-06-04 01:38:46 +00:00
externalstore Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
filebackend Pass function name to database functions 2020-06-07 14:16:52 +02:00
filerepo Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
gallery Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
historyblob Pass function name to database functions 2020-06-07 14:16:52 +02:00
Hook Move autopromote groups logic into UserGroupManager 2020-06-11 22:13:48 +00:00
HookContainer Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
htmlform Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
http Merge "Remove terminating line breaks from debug messages" 2020-06-03 02:24:13 +00:00
import WikiPage::doEditUpdates - accept a RevisionRecord object 2020-06-16 02:06:25 +00:00
installer Localisation updates from https://translatewiki.net. 2020-06-16 08:32:02 +02:00
interwiki Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
jobqueue Pass function name to database functions 2020-06-07 14:16:52 +02:00
json Fix numerous PSR12.Properties.ConstantVisibility.NotFound 2020-05-11 01:36:36 +01:00
language Remove is_scalar check on array 2020-06-19 19:23:17 +02:00
libs Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
linkeddata Fix SingleSpaceBeforeSingleLineComment 2020-05-11 00:57:11 +00:00
linker Merge "linker: Annotate first param of makeBrokenLink as not tainted" 2020-06-05 19:52:34 +00:00
logging Merge "Add doc to DatabaseLogEntry" 2020-06-15 01:21:00 +00:00
mail Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
media media: Remove truthy check on array in FormatMetadata 2020-06-20 20:54:38 +00:00
Message UserNameUtils: use ITextFormatter instead of MessageLocalizer 2020-04-13 09:28:02 -07:00
Navigation
objectcache objectcache: Remove deprecated SqlBagOStuff 'slaveOnly' option 2020-06-13 21:23:34 +01:00
page Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
pager Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ParamValidator/TypeDef
parser Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
password Remove false check from type hinted argument 2020-06-21 22:35:15 +02:00
Permissions Create UserGroupManager 2020-06-03 16:46:51 -07:00
poolcounter Fast stale ParserCache responses 2020-06-05 16:24:22 +10:00
preferences Remove PreferencesFactory::setUser() 2020-06-08 00:27:04 +00:00
profiler Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
rcfeed Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
registration Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
resourceloader resourceloader: Add missing documentation comment in VueComponentParser 2020-06-17 15:32:27 +00:00
Rest Merge "HandlerTestTrait::getRouteUrl behaving differently than Router::getRouteUrl" 2020-06-16 21:01:30 +00:00
Revision UserContributions endpoint: filter suppressed revisions 2020-06-16 08:20:32 -07:00
revisiondelete Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
revisionlist Add tests for RevisionList/RevisionItem classes 2020-05-12 09:36:44 -07:00
search Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
session Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
shell Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
site Fix more PSR12.Properties.ConstantVisibility.NotFound 2020-05-15 00:32:23 +01:00
skins Use MediaWikiServices::getAuthManager instead of AuthManager::singleton 2020-06-22 00:57:08 +00:00
sparql Fix numerous PSR12.Properties.ConstantVisibility.NotFound 2020-05-11 01:36:36 +01:00
specialpage Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
specials Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
Storage Merge "Add PageSaveComplete hook to replace PageContent(Insert|Save)Complete" 2020-06-10 21:02:49 +00:00
templates
tidy
title Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
upload Merge "upload: Modernize callback code to make use of PHP7 syntax" 2020-06-16 19:37:15 +00:00
user Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
utils Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
watcheditem Add getExpiryInDays function in WatchedItem 2020-06-16 19:58:34 -05:00
widget Clarify documentation of TitlesMultiselectWidget::$showMissing 2020-06-03 16:24:36 +02:00
xml xml: Move condition check of var before creating XmlSelect object 2020-04-27 00:37:31 +01:00
.htaccess
ActorMigration.php Fix numerous PSR12.Properties.ConstantVisibility.NotFound 2020-05-12 18:41:43 +00:00
AjaxDispatcher.php Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
AjaxResponse.php Explicit visibility modifiers to AjaxResponse.php 2020-05-10 02:00:26 +01:00
AutoLoader.php Explicit visibility modifiers to AutoLoader.php 2020-05-09 22:38:07 +00:00
Autopromote.php Move autopromote groups logic into UserGroupManager 2020-06-11 22:13:48 +00:00
BadFileLookup.php BadFile keeps a "bad file list", not a "blacklist" 2020-06-08 18:07:24 -04:00
CategoriesRdf.php Fix numerous PSR12.Properties.ConstantVisibility.NotFound 2020-05-12 18:41:43 +00:00
Category.php Category.php - add a variable $loadBalancer instead of calling wfGetDB 2020-05-27 14:21:17 +00:00
CategoryFinder.php
CategoryViewer.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
CommentStore.php Merge "Use private instead of protected in CommentStore" 2020-05-23 10:16:18 +00:00
CommentStoreComment.php
ConfiguredReadOnlyMode.php
ContentSecurityPolicy.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
DefaultSettings.php Remove deprecated PasswordCannotBePopular 2020-06-15 21:57:25 +00:00
Defines.php Move autopromote groups logic into UserGroupManager 2020-06-11 22:13:48 +00:00
DeprecatedGlobal.php
DerivativeRequest.php
DevelopmentSettings.php mediawiki-docker: Add a jobrunner container 2020-06-17 13:34:55 +00:00
DummyLinker.php linker: Move Linker::normaliseSpecialPage to LinkRenderer class 2020-05-24 23:11:55 +00:00
EditPage.php Do not return internal edit status from EditPage 2020-06-11 11:59:03 -07:00
EventRelayerGroup.php
ExtensionInfo.php Allow extensions (et al) to have multiple LICENSE/COPYING files 2020-05-05 22:49:04 +00:00
FauxRequest.php
FauxResponse.php
FeedUtils.php FeedUtils: Remove use of Revision objects 2020-04-27 18:46:13 +00:00
FileDeleteForm.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
ForeignResourceManager.php Pass function name to HttpRequestFactory::create 2020-06-07 12:20:06 +00:00
ForkController.php Fix numerous PSR12.Properties.ConstantVisibility.NotFound 2020-05-12 18:41:43 +00:00
FormOptions.php build: Bump mediawiki-codesniffer to 31.0.0 2020-05-30 14:56:28 +00:00
GitInfo.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
GlobalFunctions.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
HeaderCallback.php
Hooks.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
Html.php
Linker.php Remove unused Title::newFromText in Linker::formatLinksInComment 2020-06-15 01:13:00 +02:00
LinkFilter.php Fix numerous PSR12.Properties.ConstantVisibility.NotFound 2020-05-12 18:41:43 +00:00
ListToggle.php
MagicWord.php Rename MagicWordwgVariableIDs hook to GetMagicVariableIDs 2020-06-10 12:28:20 -04:00
MagicWordArray.php
MagicWordFactory.php Rename MagicWordwgVariableIDs hook to GetMagicVariableIDs 2020-06-10 12:28:20 -04:00
MediaWiki.php Fix redirects using Special:MyLanguage etc. when using a mobile domain 2020-06-17 22:41:49 +00:00
MediaWikiServices.php Merge "Introduce BlockPermissionChecker service for validating block targets" 2020-06-16 15:06:32 +00:00
MediaWikiVersionFetcher.php
MergeHistory.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
MovePage.php Revert "Hard deprecate the TitleMoveCompleting hook" 2020-06-17 04:09:34 +00:00
MWGrants.php
MWNamespace.php
MWTimestamp.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
NoLocalSettings.php Fix version number not showing in NoLocalSettings.php 2020-05-26 02:14:10 +02:00
OrderedStreamingForkController.php
OutputHandler.php Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
OutputPage.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
PageProps.php Fix numerous PSR12.Properties.ConstantVisibility.NotFound 2020-05-12 18:41:43 +00:00
PathRouter.php
PHPVersionCheck.php doxygen: Changed Doxygen tags causing warnings during documentation generation 2020-04-14 03:25:19 +00:00
Pingback.php Merge "Pass function name to database functions" 2020-06-07 16:03:38 +00:00
ProtectionForm.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ProxyLookup.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
RawMessage.php
ReadOnlyMode.php
Revision.php Hard deprecate Revision::getTimestamp 2020-06-10 16:57:20 +00:00
ServiceWiring.php Use MediaWikiServices::getAuthManager instead of AuthManager::singleton 2020-06-22 00:57:08 +00:00
Setup.php Use MediaWikiServices::getAuthManager instead of AuthManager::singleton 2020-06-22 00:57:08 +00:00
SiteConfiguration.php
SiteStats.php Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
SiteStatsInit.php
Status.php Fix param type for Status::msgInLang 2020-05-25 07:51:40 +00:00
StreamFile.php mime: Update usage of MimeAnalyzer methods 2020-05-28 20:13:47 +00:00
StubObject.php Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
StubUserLang.php
TemplateParser.php
TemplatesOnThisPageFormatter.php
Title.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
TitleArray.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
TitleArrayFromResult.php Explicit visibility modifiers in TitleArrayFromResult.php 2020-05-09 22:45:14 +00:00
TitleFactory.php
TrackingCategories.php Remove unused deprecated-self-close-category message 2020-06-01 10:10:58 -04:00
WebRequest.php WebRequest: Rewrite language handling in getAcceptLang() 2020-06-20 17:48:27 +00:00
WebRequestUpload.php Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
WebResponse.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
WebStart.php
WikiMap.php Fix typo: 'the the' -> 'the' 2020-05-03 20:45:36 +01:00
WikiReference.php