Manual:cleanupPreferences.php

From Linux Web Expert

Revision as of 04:28, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.20
<translate> MediaWiki version:</translate>

詳細

cleanupPreferences.php file is a maintenance script to delete user preference values which are hidden by $wgHiddenPrefs , or those that are unknown (e.g. were added by a since-uninstalled extension).

It contains the DeleteUnknownPreferences hook.

オプション/引数

オプション 説明 必須かどうか
--dry-run Print debug info instead of actually deleting <translate> Optional</translate>
--hidden Drop hidden preferences ($wgHiddenPrefs) <translate> Optional</translate>
--unknown Drop unknown preferences (not in $wgDefaultUserOptions or prefixed with "userjs-") <translate> Optional</translate>

使用法

php maintenance/cleanupPreferences.php [ --dry-run| --hidden| --unknown ]
Terminal

関連項目