Remove 'bot' check before trying the edit stash
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 6 Nov 2015 05:36:02 +0000 (21:36 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 6 Nov 2015 05:36:02 +0000 (21:36 -0800)
Some user groups, like the 'flood' one on wmf sites might
get caught up as false positives.

Change-Id: I31be62b2239477572bc063f1af0329f248bbcaf6

includes/page/WikiPage.php

index ff8050b..f7a4161 100644 (file)
@@ -2075,7 +2075,7 @@ class WikiPage implements Page, IDBAccessObject {
                }
 
                // The edit may have already been prepared via api.php?action=stashedit
-               $cachedEdit = $useCache && $wgAjaxEditStash && !$user->isAllowed( 'bot' )
+               $cachedEdit = $useCache && $wgAjaxEditStash
                        ? ApiStashEdit::checkCache( $this->getTitle(), $content, $user )
                        : false;