- Member $wgAjaxExportList
- (officially) since 1.27; use the API instead
- Member $wgContLang
- since 1.32, use the ContentLanguage service directly
- Member $wgDummyLanguageCodes
- since 1.29
- Member $wgEnablePartialBlocks
- 1.33
- Member $wgFixArabicUnicode
- since 1.33: in the future will always be true.
- Member $wgFixMalayalamUnicode
- since 1.33: in the future will always be true.
- Member $wgGalleryOptions
- since 1.28
- showBytes: Show the filesize in bytes in categories
- showDimensions: Show the dimensions (width x height) in categories
- mode: Gallery mode
- Member $wgHtml5
- since 1.22
- Member $wgIncludeLegacyJavaScript
- since 1.26: Always declare dependencies.
- Member $wgJsMimeType
- since 1.22
- Member $wgLocalInterwiki
- since 1.23; use $wgLocalInterwikis instead
- Member $wgMaximalPasswordLength
- since 1.26, use $wgPasswordPolicy's MaximalPasswordLength.
- Member $wgMinimalPasswordLength
- since 1.26, use $wgPasswordPolicy's MinimalPasswordLength.
- Member $wgOpenSearchTemplate
- since 1.25 Use $wgOpenSearchTemplates['application/x-suggestions+json'] instead
- Member $wgParser
- since 1.32, use MediaWikiServices::getInstance()->getParser() instead
- Member $wgParserTestFiles
- since 1.30
- Member $wgPasswordSalt
- since 1.24 will be removed in future
- Member $wgPopularPasswordFile
- since 1.33 path to file
- Member $wgProfileLimit
- since 1.25: set $wgProfiler['threshold'] instead.
- Member $wgProfileOnly
- since 1.23, set the log file in $wgDebugLogGroups['profileoutput'] instead.
- Member $wgSharedDB
- since 1.21 In new code, use the $wiki parameter to LBFactory::getMainLB() to access remote databases. Using LBFactory::getMainLB() allows the shared database to reside on separate servers to the wiki's own database, with suitable configuration of $wgLBFactoryConf.
- Member $wgShowDBErrorBacktrace
- and nonfunctional since 1.32: set $wgShowExceptionDetails instead.
- Member $wgShowSQLErrors
- and nonfunctional since 1.32: set $wgShowExceptionDetails and/or $wgShowHostnames instead.
- Member $wgSkipSkin
- since 1.23; use $wgSkipSkins instead
- Member $wgSquidPurgeUseHostHeader
- since 1.33, will always be true in a future release.
- Member $wgTrackingCategories
- since 1.25 Extensions should now register tracking categories using the new extension registration system.
- Member $wgUseAjax
- (officially) since MediaWiki 1.31 and ignored since 1.32
- Member $wgUseESI
- in 1.33. This was a now-defunct experimental feature.
- Member $wgUseKeyHeader
- in 1.32, the IETF spec expired without becoming a standard.
- Member $wgVersion
- since 1.35; use the MW_VERSION constant instead
- Member $wgXhtmlDefaultNamespace
- since 1.22
- Member ApiBase::getDescription ()
- since 1.25
- Member ApiBase::getDescriptionMessage ()
- since 1.30
- Member ApiBase::getExamples ()
- since 1.25, use getExamplesMessages() instead
- Member ApiBase::getParamDescription ()
- since 1.25
- Member ApiBase::truncateArray (&$arr, $limit)
- since 1.32, no replacement
- Class ApiErrorFormatter_BackCompat
Only for backwards compatibility, do not use
- Member ApiQueryBase::prepareUrlQuerySearchString ( $query=null, $protocol=null)
- since 1.33, use LinkFilter::getQueryConditions() instead
- Class ApiQueryDeletedrevs
- since 1.25
- Member ApiQueryImageInfo::getProperties ( $modulePrefix='')
- since 1.25
- Member ApiQueryImageInfo::getPropertyDescriptions ( $filter=[], $modulePrefix='')
- since 1.25
- Member ApiQueryInfo::getBlockToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::getDeleteToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::getEditToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::getEmailToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::getImportToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::getMoveToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::getOptionsToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::getProtectToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::getTokenFunctions ()
- since 1.24
- Member ApiQueryInfo::getUnblockToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::getWatchToken ( $pageid, $title)
- since 1.24
- Member ApiQueryInfo::resetTokenCache ()
- since 1.24
- Member ApiQueryRecentChanges::getPatrolToken ( $pageid, $title, $rc=null)
- since 1.24
- Member ApiQueryRecentChanges::getTokenFunctions ()
- since 1.24
- Member ApiQueryRevisions::getRollbackToken ( $pageid, $title, $rev)
- since 1.24
- Member ApiQueryRevisions::getTokenFunctions ()
- since 1.24
- Member ApiQueryUsers::getTokenFunctions ()
- since 1.24
- Member ApiQueryUsers::getUserrightsToken ( $user)
- since 1.24
- Member ApiTestCase::doLogin ( $testUser=null)
- since 1.31
- Class ApiTokens
since 1.24
- Member ArchivedFile::selectFields ()
- since 1.31, use self::getQueryInfo() instead.
- Member Article::$mContentLoaded
- since 1.32. Whether content has been loaded should not be relevant to code outside this class.
- Member Article::$mContentObject
- since 1.32
- Member Article::$mParserOutput
- since 1.32
- Member Article::$mRevIdFetched
- since 1.32, use getRevIdFetched() instead.
- Member Article::doEditContent (Content $content, $summary, $flags=0, $originalRevId=false, User $user=null, $serialFormat=null)
- since 1.29. Use WikiPage::doEditContent() directly instead
- Member Article::fetchContentObject ()
- since 1.32, use fetchRevisionRecord() instead.
- Member Article::getContentObject ()
- since 1.32, use getRevisionFetched() or fetchRevisionRecord() instead.
- Member Article::viewRedirect ( $target, $appendSubtitle=true, $forceKnown=false)
- since 1.30
- Member BaseBlacklist::getInstance ( $type)
- Use getSpamBlacklist() or getEmailBlacklist() instead
- Member BaseTemplate::msgHtml ( $str)
- 1.32 Use ->msg() or ->getMsg() instead. @suppress SecurityCheck-XSS
- Member BaseTemplate::msgWiki ( $str)
- since 1.33 Use ->msg() or ->getMsg() instead.
- Member Block::isValid ()
- since 1.33 No longer needed in core.
- Member Block::prevents ( $action, $x=null)
- since 1.33, use appliesToRight to determine block behaviour, and specific methods to get/set properties
- Member Block::selectFields ()
- since 1.31, use self::getQueryInfo() instead.
- Member BufferingStatsdDataFactory::getBuffer ()
- since 1.30 Use getData() instead
- Member buildHeadItem ( $geshi)
- since MW 1.25
- Class CategoryFinder
- since 1.31
- Member ChangesList::getTimestamp ( $rc)
- use revDateLink instead.
- Member ChangeTags::purgeTagUsageCache ()
- since 1.33 the cache this purges no longer exists
- Member CommentStore::$key
- in 1.31
- Member CommentStore::getStore ()
- in 1.31 Use DI to inject a CommentStore instance into your class.
- Member CommentStore::newKey ( $key)
- in 1.31 Should not be constructed with a $key, use CommentStore::getStore
- Member ConfigFactory::getDefaultInstance ()
- since 1.27, use MediaWikiServices::getInstance()->getConfigFactory() instead.
- Member Content::getDeletionUpdates (WikiPage $page, ParserOutput $parserOutput=null)
- since 1.32, call and override ContentHandler::getDeletionUpdates instead.
- Member Content::getNativeData ()
- since 1.33 use getText() for TextContent instances. For other content models, use specialized getters.
- Member Content::getSecondaryDataUpdates (Title $title, Content $old=null, $recursive=true, ParserOutput $parserOutput=null)
- since 1.32, call and override ContentHandler::getSecondaryDataUpdates instead.
- Member ContentHandler::getDefaultModelFor (Title $title)
- since 1.33, use SlotRoleHandler::getDefaultModel() together with SlotRoleRegistry::getRoleHandler().
- Member ContentHandler::makeParserOptions ( $context)
- since 1.32, use WikiPage::makeParserOptions() or ParserOptions::newCanonical() instead.
- Member ContextSource::getStats ()
- since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
- Class CryptRand
- since 1.32, use random_bytes()/random_int()
- Member CryptRand::driftHash ( $data)
- since 1.32, unused and does nothing
- Member CryptRand::initialRandomState ()
- since 1.32, unused and does nothing
- Member CryptRand::MIN_ITERATIONS
- since 1.32, unused
- Member CryptRand::MSEC_PER_BYTE
- since 1.32, unused
- Member CryptRand::randomState ()
- since 1.32, unused and does nothing
- Member CryptRand::wasStrong ()
- since 1.32, always returns true
- Member DataUpdate::runUpdates (array $updates)
- Since 1.28 Use DeferredUpdates::execute()
- Member DB_SLAVE
- since 1.28, use DB_REPLICA instead
- Class DeferredStringifier
- since 1.31, use Message::listParam() instead
- Member DerivativeContext::getStats ()
- since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
- Member DifferenceEngine::$mNewContent
- since 1.32, content slots are now handled by the corresponding SlotDiffRenderer. This property is set to the content of the main slot, but not actually used for the main diff.
- Member DifferenceEngine::$mOldContent
- since 1.32, content slots are now handled by the corresponding SlotDiffRenderer. This property is set to the content of the main slot, but not actually used for the main diff.
- Member DifferenceEngine::generateContentDiffBody (Content $old, Content $new)
- since 1.32, use a SlotDiffRenderer instead.
- Member DifferenceEngine::generateTextDiffBody ( $otext, $ntext)
- since 1.32, use a TextSlotDiffRenderer instead.
- Member DifferenceEngine::getDiffBodyCacheKey ()
- since 1.31, use getDiffBodyCacheKeyParams() instead
- Member DifferenceEngine::setContent (Content $oldContent, Content $newContent)
- since 1.32, use setRevisions or ContentHandler::getSlotDiffRenderer.
- Member DifferenceEngine::textDiff ( $otext, $ntext)
- since 1.32, use a TextSlotDiffRenderer instead.
- Class DifferenceEngineSlotDiffRenderer
- Member DO_MAINTENANCE
- since 1.31
- Class DoubleReplacer
- since 1.32, use a Closure instead
- Member EditPage::$mArticle
- for public usage since 1.30 use EditPage::getArticle()
- Member EditPage::$mTitle
- for public usage since 1.30 use EditPage::getTitle()
- Member EditPage::safeUnicodeInput ( $request, $field)
- since 1.30, does nothing
- Member EditPage::safeUnicodeOutput ( $text)
- since 1.30, does nothing
- Member EditPage::submit ()
- since 1.29, call edit directly
- Member EnqueueJob::newFromJobsByWiki (array $jobsByWiki)
- Since 1.33; use newFromJobsByDomain()
- Member FancyCaptcha::estimateCaptchaCount ()
- Use getCaptchaCount instead for an accurate figure
- Class FileBasedSiteLookup
- since 1.33 Use CachingSiteStore instead.
- Member FileRepo::streamFile ( $virtualUrl, $headers=[])
- since 1.26, use streamFileWithStatus
- Class FileRepoStatus
- since 1.25
- Member GenderCache::singleton ()
- in 1.28 see MediaWikiServices::getInstance()->getGenderCache()
- Class HashtableReplacer
- since 1.32, use a Closure instead
- Member HTMLForm::getErrors ( $errors)
- since 1.28, use getErrorsOrWarnings() instead
- Member HTMLForm::setSubmitProgressive ()
- since 1.32, No need to call. Submit button already has a progressive action form.
- Class HWLDFWordAccumulator
- Alias for WordAccumulator, to be soon removed
- Member IContextSource::getStats ()
- since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
- Member IcuCollation::getICUVersion ()
- since 1.32, use INTL_ICU_VERSION directly
- Member ImportableUploadRevisionImporter::downloadSource (ImportableUploadRevision $wikiRevision)
- DO NOT CALL ME. This method was introduced when factoring UploadImporter out of WikiRevision. It only has 1 use by the deprecated downloadSource method in WikiRevision. Do not use this in new code.
- Member Interwiki::fetch ( $prefix)
- since 1.28, use InterwikiLookup instead
- Member Interwiki::getAllPrefixes ( $local=null)
- since 1.28, unused. Use InterwikiLookup instead.
- Member Interwiki::isValidInterwiki ( $prefix)
- since 1.28, use InterwikiLookup instead
- Member IP::isValidBlock ( $ipRange)
- since 1.30. Use the equivalent IP::isValidRange().
- Member JobQueue::getWiki ()
- 1.33
- Member JobQueueGroup::pushLazyJobs ()
- Since 1.33 Not needed anymore
- Member Language::initEncoding ()
- No-op since 1.28
- Member Language::recodeForEdit ( $s)
- No-op since 1.28
- Member Language::recodeInput ( $s)
- No-op since 1.28
- Member Language::setCode ( $code)
- since 1.32, use Language::factory to create a new object instead.
- Member Language::viewPrevNext (Title $title, $offset, $limit, array $query=[], $atend=false)
- since 1.33, use SpecialPage::viewPrevNext() instead.
- Member Licenses::getLicenses ()
- since 1.31 Use getLines() instead
- Member LinkCache::singleton ()
- since 1.28, use MediaWikiServices instead
- Member Linker::link ( $target, $html=null, $customAttribs=[], $query=[], $options=[])
- since 1.28, use MediaWiki\Linker\LinkRenderer instead
- Member Linker::linkKnown ( $target, $html=null, $customAttribs=[], $query=[], $options=[ 'known'])
- since 1.28, use MediaWiki\Linker\LinkRenderer instead
- Member LocalFile::selectFields ()
- since 1.31, use self::getQueryInfo() instead.
- Member LocalRepo::getSlaveDB ()
- Since 1.29
- Member MagicWord::get ( $id)
- since 1.32, use MagicWordFactory::get
- Member MagicWord::getCacheTTL ( $id)
- since 1.32, use MagicWordFactory::getCacheTTL
- Member MagicWord::getDoubleUnderscoreArray ()
- since 1.32, use MagicWordFactory::getDoubleUnderscoreArray
- Member MagicWord::getSubstIDs ()
- since 1.32, use MagicWordFactory::getSubstIDs
- Member MagicWord::getVariableIDs ()
- since 1.32, use MagicWordFactory::getVariableIDs
- Member ManualLogEntry::setTags ( $tags)
- since 1.33 Please use addTags() instead
- Class McrRestoreAction
- since 1.32
- Class McrUndoAction
- since 1.32
- Member MediaTransformOutput::streamFile ( $headers=[])
- since 1.26, use streamFileWithStatus
- Member MediaWiki\Auth\AuthManager::callLegacyAuthPlugin ( $method, array $params, $return=null)
- For backwards compatibility only, should be avoided in new code
- Member MediaWiki\Auth\AuthManager::forcePrimaryAuthenticationProviders (array $providers, $why)
- For backwards compatibility only
- Class MediaWiki\Auth\LegacyHookPreAuthenticationProvider
- since 1.27
- Class MediaWiki\Edit\PreparedEdit
- since 1.32, use DerivedPageDataUpdater instead.
- Class MediaWiki\Logger\Monolog\LegacyFormatter
- since 1.32
- Member MediaWiki\MediaWikiServices::getCryptRand ()
- since 1.32, use random_bytes()/random_int()
- Member MediaWiki\Revision\RevisionFactory::newMutableRevisionFromArray (array $fields, $queryFlags=0, Title $title=null)
- since 1.31. Use a MutableRevisionRecord instead.
- Member MediaWiki\Revision\RevisionStore::listRevisionSizes (IDatabase $db, array $revIds)
- use RevisionStore::getRevisionSizes instead.
- Member MediaWiki\Revision\RevisionStore::userWasLastToEdit (IDatabase $db, $pageId, $userId, $since)
- since 1.31; Can possibly be removed, since the self-conflict suppression logic in EditPage that uses this seems conceptually dubious. Revision::userWasLastToEdit has been deprecated since 1.24.
- Member MediaWiki\Storage\DerivedPageDataUpdater::getPreparedEdit ()
- This only exists for B/C, use the getters on DerivedPageDataUpdater directly!
- Member MediaWiki\Storage\SqlBlobStore::getTextIdFromAddress ( $address)
- since 1.31, so don't assume that all blob addresses refer to a row in the text table. This method should become private once the relevant refactoring in WikiPage is complete.
- Member MediaWiki\Storage\SqlBlobStore::makeAddressFromTextId ( $id)
- since 1.31. This method should become private once the relevant refactoring in WikiPage is complete.
- Class MediaWiki\Widget\Search\SimpleSearchResultSetWidget
- since 1.31. Use InterwikiSearchResultSetWidget
- Class MediaWiki\Widget\Search\SimpleSearchResultWidget
- since 1.31. Use other result widgets.
- Member MediaWikiTestCase::prepareServices (Config $bootstrapConfig)
- since 1.32
- Member MediaWikiTestCase::stashMwGlobals ( $globalKeys)
- since 1.32, use setMwGlobals() and don't alter globals directly
- Member Message::$format
-
- Member Message::getFormat ()
- since 1.29 formatting is not stateful
- Member MessageContent::getNativeData ()
- since 1.33 use getMessage() instead.
- Member MWCryptRand::generate ( $bytes)
- since 1.32, use random_bytes()
- Member MWCryptRand::singleton ()
- since 1.32
- Member MWCryptRand::wasStrong ()
- since 1.32, always returns true
- Member MWNamespace::canTalk ( $index)
- since 1.30, use hasTalkNamespace() instead.
- Member MWTidy::setInstance ( $instance)
- Since 1.33
- Member MWTimestamp::getHumanTimestamp (MWTimestamp $relativeTo=null, User $user=null, Language $lang=null)
- since 1.26 Use Language::getHumanTimestamp directly
- Member NS_IMAGE
- since 1.14
- Member NS_IMAGE_TALK
- since 1.14
- Member ObjectCache::getMainStashInstance ()
- Since 1.28 Use MediaWikiServices::getInstance()->getMainObjectStash()
- Member ObjectCache::getMainWANInstance ()
- Since 1.28 Use MediaWikiServices::getInstance()->getMainWANObjectCache()
- Class ObjectFactory
- since 1.31, use \Wikimedia\ObjectFactory instead
- Member OldLocalFile::selectFields ()
- since 1.31, use self::getQueryInfo() instead.
- Member OutputPage::addWikiText ( $text, $linestart=true, $interface=true)
- since 1.32 due to untidy output; use addWikiTextAsInterface() if $interface is default value or true, or else addWikiTextAsContent() if $interface is false.
- Member OutputPage::addWikiTextTidy ( $text, $linestart=true)
- since 1.32 to rename methods consistently; use addWikiTextAsContent()
- Member OutputPage::addWikiTextTitle ( $text, Title $title, $linestart, $tidy=false, $interface=false)
- since 1.32, use addWikiTextAsContent() or addWikiTextAsInterface() (depending on $interface)
- Member OutputPage::addWikiTextTitleTidy ( $text, Title $title, $linestart=true)
- since 1.32 to rename methods consistently; use addWikiTextAsContent()
- Member OutputPage::addWikiTextWithTitle ( $text, Title $title, $linestart=true)
- since 1.32 due to untidy output; use addWikiTextAsInterface()
- Member OutputPage::enableSectionEditLinks ( $flag=true)
- since 1.31, use $poOptions to addParserOutput() instead.
- Member OutputPage::getKeyHeader ()
- in 1.32; the IETF spec for this header expired w/o becoming a standard.
- Member OutputPage::getModuleScripts ()
- since 1.33 Use getModules() instead.
- Member OutputPage::parse ( $text, $linestart=true, $interface=false, $language=null)
- since 1.32, due to untidy output and inconsistent wrapper; use parseAsContent() if $interface is default value or false, or else parseAsInterface() if $interface is true.
- Member OutputPage::parseInline ( $text, $linestart=true, $interface=false)
- since 1.32, due to untidy output and confusing default for $interface. Use parseInlineAsInterface() if $interface is the default value or false, or else use Parser::stripOuterParagraph($outputPage->parseAsContent(...)).
- Member OutputPage::sectionEditLinksEnabled ()
- since 1.31, use $poOptions to addParserOutput() instead.
- Member OutputPage::showFileCopyError ( $old, $new)
- 1.32 Use OutputPage::showFatalError or throw FatalError instead.
- Member OutputPage::showFileDeleteError ( $name)
- 1.32 Use OutputPage::showFatalError or throw FatalError instead.
- Member OutputPage::showFileNotFoundError ( $name)
- 1.32 Use OutputPage::showFatalError or throw FatalError instead.
- Member OutputPage::showFileRenameError ( $old, $new)
- 1.32 Use OutputPage::showFatalError or throw FatalError instead.
- Member OutputPage::showUnexpectedValueError ( $name, $val)
- 1.32 Use OutputPage::showFatalError or throw FatalError instead.
- Member PageArchive::getLastRevisionText ()
- since 1.32. For compatibility with the MCR schema, calling code should switch to getLastRevisionId() and getArchiveRevision().
- Member PageArchive::getRevision ( $timestamp)
- since 1.32, use getArchivedRevision() instead.
- Member PageArchive::getTextFromRow ( $row)
- since 1.32. In the MCR schema, ar_text_id no longer exists. Calling code should switch to getArchiveRevision().
- Member PageArchive::listAllPages ()
- since 1.32.
- Member Parser::$mUniqPrefix
- since 1.26; use Parser::MARKER_PREFIX instead.
- Member Parser::disableCache ()
- since 1.28; use getOutput()->updateCacheExpiry()
- Member Parser::fetchFile ( $title, $options=[])
- since 1.32, use fetchFileAndTitle instead
- Member Parser::getConverterLanguage ()
- since 1.32, just use getTargetLanguage()
- Member Parser::isValidHalfParsedText ( $data)
- since 1.31
- Member Parser::serializeHalfParsedText ( $text)
- since 1.31
- Member Parser::unserializeHalfParsedText ( $data)
- since 1.31
- Member ParserCache::singleton ()
- since 1.30, use MediaWikiServices instead
- Member ParserOptions::getEditSection ()
- since 1.31, use ParserOutput::getText() options instead.
- Member ParserOptions::getSpeculativeRevIdCallback ()
- since 1.32, use getSpeculativeRevId() instead!
- Member ParserOptions::setEditSection ( $x)
- since 1.31, use ParserOutput::getText() options instead.
- Member ParserOptions::setOptionLegacy ( $name, $value)
- since 1.30
- Member ParserOutput::getEditSectionTokens ()
- since 1.31 Use getText() options.
- Member ParserOutput::getTOCEnabled ()
- since 1.31 Use getText() options.
- Member ParserOutput::setEditSectionTokens ( $t)
- since 1.31 Use getText() options.
- Member ParserOutput::setTOCEnabled ( $flag)
- since 1.31 Use getText() options.
- Member Password::equals ( $other)
- since 1.33, use verify()
- Member PasswordFactory::init (Config $config)
- since 1.32 Initialize settings using the constructor
- Member PasswordPolicyChecks::checkPopularPasswordBlacklist ( $policyVal, User $user, $password)
- since 1.33
- Class Preferences
- since 1.31 use the PreferencesFactory service instead.
- Class PrefixSearch
- Since 1.27, Use SearchEngine::defaultPrefixSearch or SearchEngine::completionSearch
- Member PrefixSearch::titleSearch ( $search, $limit, $namespaces=[], $offset=0)
- Since 1.23, use TitlePrefixSearch or StringPrefixSearch classes
- Member prepare ( $text, $lang)
- since MW 1.25
- Class ProcessCacheLRU
- Since 1.32 Use MapCacheLRU instead
- Member QueryPage::tryLastResult ()
- since 1.27
- Member QuickTemplate::msgHtml ( $msgKey)
- 1.32 Use ->msg() instead. @suppress SecurityCheck-XSS
- Member QuickTemplate::msgWiki ( $msgKey)
- since 1.33 Use ->msg() instead.
- Member QuickTemplate::setRef ( $name, &$value)
- since 1.31 This function is a now-redundant optimisation intended for very old versions of PHP. The use of references here makes the code more fragile and is incompatible with plans like T140664. Use set() instead.
- Class RCFeedEngine
- since 1.29 Use FormattedRCFeed instead
- Member RecentChange::getEngine ( $uri, $params=[])
- since 1.29 Use RCFeed::factory() instead
- Member RecentChange::selectFields ()
- since 1.31, use self::getQueryInfo() instead.
- Class RegexlikeReplacer
- since 1.32, use a Closure instead
- Class Replacer
- since 1.32, use a Closure instead
- Member RequestContext::getStats ()
- since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected)
- Class ResetUserTokens
- since 1.27, use $wgAuthenticationTokenVersion instead.
- Member ResourceLoader::getLessVars ()
- since 1.32 Use ResourceLoderModule::getLessVars() instead.
- Member ResourceLoaderContext::expandModuleNames ( $modules)
- since 1.33 Use ResourceLoader::expandModuleNames instead.
- Member ResourceLoaderStartUpModule::getLegacyModules ()
- since 1.32 No longer used.
- Member ResourceLoaderStartUpModule::getStartupModules ()
- since 1.32 No longer used.
- Class Revision
- since 1.31, use RevisionRecord, RevisionStore, and BlobStore instead.
- Member Revision::getArchiveQueryInfo ()
- since 1.31, use RevisionStore::getArchiveQueryInfo() instead.
- Member Revision::getParentLengths ( $db, array $revIds)
- in 1.31, use RevisionStore::getRevisionSizes instead.
- Member Revision::getQueryInfo ( $options=[])
- since 1.31, use RevisionStore::getQueryInfo() instead.
- Member Revision::getRevisionText ( $row, $prefix='old_', $wiki=false)
- since 1.32, use RevisionStore::newRevisionFromRow instead.
- Member Revision::getSerializedData ()
- since 1.31, use BlobStore::getBlob instead.
- Member Revision::getTextId ()
- since 1.31, use RevisionRecord()->getSlot()->getContentAddress() to get that actual address that can be used with BlobStore::getBlob(); or use RevisionRecord::hasSameContent() to check if two revisions have the same content.
- Member Revision::loadFromId ( $db, $id)
- since 1.31, use RevisionStore::getRevisionById() instead.
- Member Revision::loadFromPageId ( $db, $pageid, $id=0)
- since 1.31, use RevisionStore::getRevisionByPageId() instead.
- Member Revision::loadFromTimestamp ( $db, $title, $timestamp)
- since 1.31, use RevisionStore::getRevisionByTimestamp() or RevisionStore::loadRevisionFromTimestamp() instead.
- Member Revision::loadFromTitle ( $db, $title, $id=0)
- since 1.31, use RevisionStore::getRevisionByTitle() instead.
- Member Revision::pageJoinCond ()
- since 1.31, use RevisionStore::getQueryInfo( [ 'page' ] ) instead.
- Member Revision::selectArchiveFields ()
- since 1.31, use RevisionStore::getArchiveQueryInfo() instead.
- Member Revision::selectFields ()
- since 1.31, use RevisionStore::getQueryInfo() instead.
- Member Revision::selectPageFields ()
- since 1.31, use RevisionStore::getQueryInfo( [ 'page' ] ) instead.
- Member Revision::selectTextFields ()
- since 1.31, use RevisionStore::getQueryInfo( [ 'text' ] ) instead.
- Member Revision::selectUserFields ()
- since 1.31, use RevisionStore::getQueryInfo( [ 'user' ] ) instead.
- Member Revision::setTitle ( $title)
- since 1.31, this is now a noop. Pass the Title to the constructor instead.
- Member Revision::setUserIdAndName ( $id, $name)
- since 1.31, please reuse old Revision object
- Member Revision::userJoinCond ()
- since 1.31, use RevisionStore::getQueryInfo( [ 'user' ] ) instead.
- Member Revision::userWasLastToEdit ( $db, $pageId, $userId, $since)
- since 1.24
- Member Sanitizer::escapeId ( $id, $options=[])
- since 1.30, use one of this class' escapeIdFor*() functions
- Member SearchEngine::create ( $type=null)
- since 1.27; Use SearchEngineFactory::create
- Member SearchEngine::defaultNamespaces ()
- since 1.27; use SearchEngineConfig::defaultNamespaces()
- Member SearchEngine::getNearMatch ( $searchterm)
- since 1.27; Use SearchEngine::getNearMatcher()
- Member SearchEngine::getSearchTypes ()
- since 1.27; use SearchEngineConfig::getSearchTypes()
- Member SearchEngine::namespacesAsText ( $namespaces)
- since 1.27; use SearchEngineConfig::namespacesAsText()
- Member SearchEngine::replacePrefixes ( $query)
- since 1.32; should be handled internally by the search engine
- Member SearchEngine::searchableNamespaces ()
- since 1.27; use SearchEngineConfig::searchableNamespaces()
- Member SearchEngine::transformSearchTerm ( $term)
- since 1.32 this should now be handled internally by the search engine
- Member SearchEngine::userNamespaces ( $user)
- since 1.27; use SearchEngineConfig::userNamespaces()
- Member SearchResultSet::next ()
- since 1.32; Use self::extractResults() or foreach
- Member SearchResultSet::rewind ()
- since 1.32; Use self::extractResults() or foreach
- Member SimpleCaptcha::captchaTriggers ( $title, $action)
- since 1.5.1 Use triggersCaptcha instead
- Member SiteConfiguration::$localVHosts
- since 1.25; use $wgLocalVirtualHosts instead.
- Member Skin::getDynamicStylesheetQuery ()
- since 1.32 Use action=raw&ctype=text/css directly.
- Member Skin::setupSkinUserCss (OutputPage $out)
- since 1.32 Use getDefaultModules() instead.
- Member Skin::shouldPreloadLogo ()
- since 1.32 Redundant. It now happens automatically based on whether the skin loads a stylesheet based on ResourceLoaderSkinModule, which all skins that use wgLogo in CSS do, and other's would not.
- Member SkinFactory::getDefaultInstance ()
- in 1.27
- Member SpecialPage::getTitle ( $subpage=false)
- since 1.23, use SpecialPage::getPageTitle
- Class SpecialPageFactory
- since 1.32, use the SpecialPageFactory service instead
- Member SpecialRecentChanges::filterByCategories (&$rows, FormOptions $opts)
- since 1.31
- Class SpecialResetTokens
- since 1.26
- Member Status::getErrorsArray ()
- since 1.25
- Member Status::getWarningsArray ()
- since 1.25
- Class StringPrefixSearch
Since 1.27, Use SearchEngine::prefixSearchSubpages or SearchEngine::completionSearch
- Member StripState::getSubState ( $text)
- since 1.31
- Member StripState::merge ( $otherState, $texts)
- since 1.31
- Member TablePager::getBody ()
- since 1.24, use getBodyOutput() or getFullOutput() instead
- Member TextContent::getHighlightHtml ()
- since 1.24. Use getHtml() instead. In particular, subclasses overriding getHighlightHtml() should override getHtml() instead.
- Member TextContent::getNativeData ()
- since 1.33 use getText() instead.
- Member Title::getUserCaseDBKey ()
- since 1.33; please use Title::getDBKey() instead
- Member Title::getUserPermissionsErrors ( $action, $user, $rigor=PermissionManager::RIGOR_SECURE, $ignoreErrors=[])
- since 1.33, use MediaWikiServices::getInstance()->getPermissionManager()->getUserPermissionsErrors()
- Member Title::isValidMoveOperation (&$nt, $auth=true, $reason='')
- since 1.25, use MovePage's methods instead
- Member Title::isValidMoveTarget ( $nt)
- since 1.25, use MovePage's methods instead
- Member Title::moveTo (&$nt, $auth=true, $reason='', $createRedirect=true, array $changeTags=[])
- since 1.25, use the MovePage class instead
- Member Title::quickUserCan ( $action, $user=null)
- since 1.33, use MediaWikiServices::getInstance()->getPermissionManager()->quickUserCan(..) instead
- Member Title::userCan ( $action, $user=null, $rigor=PermissionManager::RIGOR_SECURE)
- since 1.33, use MediaWikiServices::getInstance()->getPermissionManager()->userCan(..) instead
- Class TitlePrefixSearch
Since 1.27, Use SearchEngine::defaultPrefixSearch or SearchEngine::completionSearch
- Member TitleValue::$dbkey
- in 1.31. This class is immutable. Use the getter for access.
- Member TitleValue::$fragment
- in 1.31. This class is immutable. Use the getter for access.
- Member TitleValue::$interwiki
- in 1.31. This class is immutable. Use the getter for access.
- Member TitleValue::$namespace
- in 1.31. This class is immutable. Use the getter for access.
- Member UploadBase::stashFile (User $user=null)
- since 1.28 Use tryStashFile() instead
- Member UploadBase::stashFileGetKey ()
- since 1.28
- Member UploadBase::stashSession ()
- since 1.28
- Member UploadFromChunks::stashFile (User $user=null)
- since 1.28 Use tryStashFile() instead
- Member UploadFromChunks::stashFileGetKey ()
- since 1.28
- Member UploadFromChunks::stashSession ()
- since 1.28
- Member User::addNewUserLogEntry ( $action=false, $reason='')
- since 1.27, AuthManager handles logging
- Member User::addNewUserLogEntryAutoCreate ()
- since 1.27, AuthManager handles logging
- Member User::checkPassword ( $password)
- since 1.27, use AuthManager instead
- Member User::checkTemporaryPassword ( $plaintext)
- since 1.27, use AuthManager instead
- Member User::getGroupPage ( $group)
- since 1.29 Use UserGroupMembership::getGroupPage instead
- Member User::getPasswordValidity ( $password)
- since 1.33, use checkPasswordValidity
- Member User::getTokenFromOption ( $oname)
- since 1.26 Applications should use the OAuth extension
- Member User::isBlockedFrom ( $title, $fromReplica=false)
- since 1.33, use MediaWikiServices::getInstance()->getPermissionManager()->isBlockedFrom(..)
- Member User::makeGroupLinkHTML ( $group, $text='')
- since 1.29 Use UserGroupMembership::getLink instead, or make the link yourself if you need custom text
- Member User::makeGroupLinkWiki ( $group, $text='')
- since 1.29 Use UserGroupMembership::getLink instead, or make the link yourself if you need custom text
- Member User::randomPassword ()
- since 1.27, use PasswordFactory::generateRandomPasswordString()
- Member User::selectFields ()
- since 1.31, use self::getQueryInfo() instead.
- Member User::setInternalPassword ( $str)
- since 1.27, use AuthManager instead
- Member User::setNewpassword ( $str, $throttle=true)
- Removed in 1.27. Use PasswordReset instead.
- Member User::setPassword ( $str)
- since 1.27, use AuthManager instead
- Member WatchAction::getUnwatchToken (Title $title, User $user, $action='unwatch')
- since 1.32 Use WatchAction::getWatchToken() with action 'unwatch' directly.
- Member WebInstallerOutput::addWikiText ( $text)
- since 1.32; use addWikiTextAsInterface instead
- Member wfArrayFilter (array $arr, callable $callback)
- since 1.32, use array_filter() with ARRAY_FILTER_USE_BOTH directly
- Member wfArrayFilterByKey (array $arr, callable $callback)
- since 1.32, use array_filter() with ARRAY_FILTER_USE_KEY directly
- Member wfBCP47 ( $code)
- since 1.31, use LanguageCode::bcp47() directly.
- Member wfCountDown ( $seconds)
- since 1.31, use Maintenance::countDown()
- Member wfDiff ( $before, $after, $params='-u')
- since 1.25, use DiffEngine/UnifiedDiffFormatter directly
- Member wfEscapeShellArg (... $args)
- since 1.30 use MediaWiki\Shell\Shell::escape()
- Member wfGetCache ( $cacheType)
- since 1.32, use ObjectCache::getInstance() instead
- Member wfGetLB ( $wiki=false)
- since 1.27, use MediaWikiServices::getInstance()->getDBLoadBalancer() or MediaWikiServices::getInstance()->getDBLoadBalancerFactory() instead.
- Member wfGetLBFactory ()
- since 1.27, use MediaWikiServices::getInstance()->getDBLoadBalancerFactory() instead.
- Member wfGetMainCache ()
- since 1.32, use ObjectCache::getLocalClusterInstance() instead
- Member wfGlobalCacheKey (... $args)
- since 1.30 Call makeGlobalKey on a BagOStuff instance
- Member wfMakeUrlIndexes ( $url)
- since 1.33, use LinkFilter::makeIndexes() instead
- Member wfMemcKey (... $args)
- since 1.30 Call makeKey on a BagOStuff instance
- Member wfResetSessionID ()
- since 1.27, use MediaWiki\Session\SessionManager instead
- Member wfRestoreWarnings ()
- since 1.26, use Wikimedia\restoreWarnings() directly Restore error level to previous value
- Member wfSetupSession ( $sessionId=false)
- since 1.27, use MediaWiki\Session\SessionManager instead. Generally, "using" SessionManager will be calling ->getSessionById() or ::getGlobalSession() (depending on whether you were passing $sessionId here), then calling $session->persist().
- Member wfShellExec ( $cmd, &$retval=null, $environ=[], $limits=[], $options=[])
- since 1.30 use class MediaWiki\Shell\Shell
- Member wfShellExecWithStderr ( $cmd, &$retval=null, $environ=[], $limits=[])
- since 1.30 use class MediaWiki\Shell\Shell
- Member wfShellWikiCmd ( $script, array $parameters=[], array $options=[])
- since 1.31, use Shell::makeScriptCommand()
- Member wfSuppressWarnings ( $end=false)
- since 1.26, use Wikimedia\suppressWarnings() directly
- Member wfWaitForSlaves ( $ifWritesSince=null, $wiki=false, $cluster=false, $timeout=null)
- since 1.27 Use LBFactory::waitForReplication
- Member WikiMap::getWikiIdFromDomain ( $domain)
- Since 1.33; use getWikiIdFromDbDomain()
- Member Wikimedia\Rdbms\Database::getProperty ( $name)
- Since 1.28
- Member Wikimedia\Rdbms\Database::reportConnectionError ( $error='Unknown error')
- since 1.32
- Member Wikimedia\Rdbms\IDatabase::aggregateValue ( $valuedata, $valuename='value')
- Since 1.33
- Member Wikimedia\Rdbms\IDatabase::doneWrites ()
- Since 1.31; use lastDoneWrites()
- Member Wikimedia\Rdbms\IDatabase::getWikiID ()
- 1.30
- Member Wikimedia\Rdbms\IDatabase::implicitGroupby ()
- Since 1.30; only use grouped or aggregated fields in the SELECT
- Member Wikimedia\Rdbms\IDatabase::nextSequenceValue ( $seqName)
- since 1.30, no longer needed
- Member Wikimedia\Rdbms\IDatabase::onTransactionIdle (callable $callback, $fname=__METHOD__)
- Since 1.32
- Member Wikimedia\Rdbms\IDatabase::selectDB ( $db)
- Since 1.32 Use selectDomain() instead
- Member Wikimedia\Rdbms\LBFactory::setDomainPrefix ( $prefix)
- Since 1.33
- Member Wikimedia\Rdbms\LoadBalancer::laggedSlaveUsed ()
- Since 1.28; use laggedReplicaUsed()
- Member Wikimedia\Rdbms\LoadBalancer::setDomainPrefix ( $prefix)
- Since 1.33
- Class Wikimedia\Rdbms\NextSequenceValue
- since 1.30, only exists for backwards compatibility
- Class Wikimedia\Rdbms\SavepointPostgres
- since 1.31, use IDatabase::startAtomic() and such instead.
- Member WikiPage::checkFlags ( $flags)
- since 1.32, use exists() instead, or simply omit the EDIT_UPDATE and EDIT_NEW flags. To protect against race conditions, use PageUpdater::grabParentRevision.
- Member WikiPage::doEditContent (Content $content, $summary, $flags=0, $originalRevId=false, User $user=null, $serialFormat=null, $tags=[], $undidRevId=0)
- since 1.32, use PageUpdater::saveRevision instead. Note that the new method expects callers to take care of checking EDIT_MINOR against the minoredit right, and to apply the autopatrol right as appropriate.
- Member WikiPage::doEditUpdates (Revision $revision, User $user, array $options=[])
- since 1.32, use PageUpdater::doUpdates instead.
- Member WikiPage::hasDifferencesOutsideMainSlot (Revision $a, Revision $b)
- Use only as a stop-gap before refactoring to support MCR.
- Member WikiPage::prepareContentForEdit (Content $content, $revision=null, User $user=null, $serialFormat=null, $useCache=true)
- since 1.32, use getDerivedDataUpdater instead.
- Member WikiPage::replaceSectionContent ( $sectionId, Content $sectionContent, $sectionTitle='', $edittime=null)
- since 1.24, use replaceSectionAtRev instead
- Member WikiPage::selectFields ()
- since 1.31, use self::getQueryInfo() instead.
- Member WikiPage::updateIfNewerOn ( $dbw, $revision)
- since 1.24, use updateRevisionOn instead
- Member WikiRevision::$fileIsTemp
- 1.29 use Wikirevision::isTempSrc() First written to in 43d5d3b682cc1733ad01a837d11af4a402d57e6a Actually introduced in 52cd34acf590e5be946b7885ffdc13a157c1c6cf
- Member WikiRevision::$user
- in 1.29. Unused.
- Member WikiRevision::downloadSource ()
- in 1.31. Use UploadImporter::downloadSource
- Member WikiRevision::importOldRevision ()
- in 1.31. Use OldRevisionImporter::import
- Member WikiRevision::importUpload ()
- in 1.31. Use UploadImporter::import
- Class XMPInfo
- since 1.32
- Class XMPReader
- since 1.32
- Class XMPValidate
- since 1.32