From: Kevin Israel Date: Wed, 10 Dec 2014 11:48:13 +0000 (-0500) Subject: API: Allow redirecting a page to itself using action=edit X-Git-Tag: 1.31.0-rc.0~13017^2 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=8074eb0bd121906df110958778fb3413a2fed5f6;p=lhc%2Fweb%2Fwiklou.git API: Allow redirecting a page to itself using action=edit Follows-up 02660685708747d5. Change-Id: I60aa15ac9f33c560c940c55cf98626bb9ff4b822 --- diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index c1598c8073..80589c34a9 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -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'] ) ) {