aboutsummaryrefslogtreecommitdiffstats
path: root/includes/page
diff options
context:
space:
mode:
authorDannyS712 <dannys712.wiki@gmail.com>2021-06-28 23:06:24 +0000
committerDannyS712 <dannys712.wiki@gmail.com>2021-07-04 00:03:38 +0000
commit8217a1a253c7f3b52ee0ef99c8baa41552a48b28 (patch)
tree8d0dae8ebccda6d9049478876a5b729e6a2e96a1 /includes/page
parent35513062b4daf15df492665abb486ee79891defe (diff)
downloadmediawikicore-8217a1a253c7f3b52ee0ef99c8baa41552a48b28.tar.gz
mediawikicore-8217a1a253c7f3b52ee0ef99c8baa41552a48b28.zip
Hard deprecate WikiPage::doEditContent
Bug: T255507 Change-Id: I8f4e5a579b787f94963f0c0dded30b374f5b4e3a
Diffstat (limited to 'includes/page')
-rw-r--r--includes/page/WikiPage.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php
index e649735dbb39..464d50f81c06 100644
--- a/includes/page/WikiPage.php
+++ b/includes/page/WikiPage.php
@@ -1464,7 +1464,7 @@ class WikiPage implements Page, IDBAccessObject, PageRecord {
$lastRevIsRedirect = null
) {
// TODO: move into PageUpdater or PageStore
- // NOTE: when doing that, make sure cached fields get reset in doEditContent,
+ // NOTE: when doing that, make sure cached fields get reset in doUserEditContent,
// and in the compat stub!
// Assertion to try to catch T92046
@@ -1875,7 +1875,7 @@ class WikiPage implements Page, IDBAccessObject, PageRecord {
*
* @deprecated 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.
+ * apply the autopatrol right as appropriate. Hard deprecated since 1.37
* @note since 1.36 ::doUserEditContent is available as an interim replacement
*
* @param Content $content New content
@@ -1938,9 +1938,11 @@ class WikiPage implements Page, IDBAccessObject, PageRecord {
Content $content, $summary, $flags = 0, $originalRevId = false,
Authority $performer = null, $serialFormat = null, $tags = [], $undidRevId = 0
) {
- global $wgUser;
+ wfDeprecated( __METHOD__, '1.32' );
if ( !$performer ) {
+ // Its okay to fallback to $wgUser because this whole method is deprecated
+ global $wgUser;
$performer = $wgUser;
}