From a86ad78b558f390fd5195f39dd544c51b6611f94 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 26 Feb 2015 22:35:18 +0100 Subject: [PATCH] ParserOptions: added comment regarding editsections usage. // @note: as of Feb 2015, core never sets the editsection flag, since it uses // tags to inject editsections on the fly. However, extensions // may be using it by calling ParserOption::optionUsed resp. ParserOutput::registerOption // directly. At least Wikibase does at this point in time. Change-Id: Ief95ecb3ae1f5699b788dd3dad0eaf1aa6cc163c --- includes/parser/ParserOptions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index 4459047a35..1073aed817 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -802,6 +802,10 @@ class ParserOptions { $confstr .= $wgRenderHashAppend; + // @note: as of Feb 2015, core never sets the editsection flag, since it uses + // tags to inject editsections on the fly. However, extensions + // may be using it by calling ParserOption::optionUsed resp. ParserOutput::registerOption + // directly. At least Wikibase does at this point in time. if ( !in_array( 'editsection', $forOptions ) ) { $confstr .= '!*'; } elseif ( !$this->mEditSection ) { -- 2.20.1