ImageHistoryList: Remove 'wpEditToken' parameter from the "revert" link for files
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 1 Sep 2016 20:59:55 +0000 (22:59 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 1 Sep 2016 21:50:34 +0000 (23:50 +0200)
The action=revert page does not use this parameter at all. (It displays
a form with an entirely different token.) I think this has not been
needed since cf6dd13faca23af5b6e3188445b84e05d620d499 (r91284).

Change-Id: Ice5ecd2606a94a70321ede5304fee77fb1fb06c1

includes/page/ImageHistoryList.php

index 607357f..bb8ed24 100644 (file)
@@ -180,7 +180,6 @@ class ImageHistoryList extends ContextSource {
                                        [
                                                'action' => 'revert',
                                                'oldimage' => $img,
-                                               'wpEditToken' => $user->getEditToken( $img )
                                        ]
                                );
                        }