API: Allow redirecting a page to itself using action=edit
authorKevin Israel <pleasestand@live.com>
Wed, 10 Dec 2014 11:48:13 +0000 (06:48 -0500)
committerKevin Israel <pleasestand@live.com>
Wed, 10 Dec 2014 11:48:13 +0000 (06:48 -0500)
Follows-up 02660685708747d5.

Change-Id: I60aa15ac9f33c560c940c55cf98626bb9ff4b822

includes/api/ApiEditPage.php

index c1598c8..80589c3 100644 (file)
@@ -253,7 +253,8 @@ class ApiEditPage extends ApiBase {
                        'model' => $contentHandler->getModelID(),
                        'wpEditToken' => $params['token'],
                        'wpIgnoreBlankSummary' => '',
-                       'wpIgnoreBlankArticle' => true
+                       'wpIgnoreBlankArticle' => true,
+                       'wpIgnoreSelfRedirect' => true,
                );
 
                if ( !is_null( $params['summary'] ) ) {