Page MenuHomePhorge

No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None
diff --git a/docs/config-schema.yaml b/docs/config-schema.yaml
index 55a98aa5f5e..b21fe4c11f7 100644
--- a/docs/config-schema.yaml
+++ b/docs/config-schema.yaml
@@ -4258,16 +4258,6 @@ config-schema:
Overriding the default configuration is strongly discouraged in
production.
@since 1.39
- ParsoidFragmentInput:
- default: false
- type: boolean
- description: |-
- Enable passing fragments as input to the Parsoid
- DataAccess::preprocessWikitext() endpoint.
- This is a temporary configuration variable to allow
- testing a new parsoid feature, which will become the default
- in future releases.
- @unstable EXPERIMENTAL
ParsoidExperimentalParserFunctionOutput:
default: false
type: boolean
diff --git a/docs/config-vars.php b/docs/config-vars.php
index 3db04d7092a..50a568bac3c 100644
--- a/docs/config-vars.php
+++ b/docs/config-vars.php
@@ -2379,12 +2379,6 @@ $wgTidyConfig = null;
*/
$wgParsoidSettings = null;
-/**
- * Config variable stub for the ParsoidFragmentInput setting, for use by phpdoc and IDEs.
- * @see MediaWiki\MainConfigSchema::ParsoidFragmentInput
- */
-$wgParsoidFragmentInput = null;
-
/**
* Config variable stub for the ParsoidExperimentalParserFunctionOutput setting, for use by phpdoc and IDEs.
* @see MediaWiki\MainConfigSchema::ParsoidExperimentalParserFunctionOutput
diff --git a/includes/MainConfigNames.php b/includes/MainConfigNames.php
index 0019debcb26..5aa685fa8e6 100644
--- a/includes/MainConfigNames.php
+++ b/includes/MainConfigNames.php
@@ -2394,12 +2394,6 @@ class MainConfigNames {
*/
public const ParsoidSettings = 'ParsoidSettings';
- /**
- * Name constant for the ParsoidFragmentInput setting, for use with Config::get()
- * @see MainConfigSchema::ParsoidFragmentInput
- */
- public const ParsoidFragmentInput = 'ParsoidFragmentInput';
-
/**
* Name constant for the ParsoidExperimentalParserFunctionOutput setting, for use with Config::get()
* @see MainConfigSchema::ParsoidExperimentalParserFunctionOutput
diff --git a/includes/MainConfigSchema.php b/includes/MainConfigSchema.php
index 6cff642ee7c..05d75899392 100644
--- a/includes/MainConfigSchema.php
+++ b/includes/MainConfigSchema.php
@@ -6670,19 +6670,6 @@ class MainConfigSchema {
'type' => 'map',
];
- /**
- * Enable passing fragments as input to the Parsoid
- * DataAccess::preprocessWikitext() endpoint.
- * This is a temporary configuration variable to allow
- * testing a new parsoid feature, which will become the default
- * in future releases.
- * @unstable EXPERIMENTAL
- */
- public const ParsoidFragmentInput = [
- 'default' => false,
- 'type' => 'boolean',
- ];
-
/**
* If set, Parsoid's HTML output for parser functions will be different
* from Parsoid HTML spec 2.x.x and lets us experiment with a better
diff --git a/includes/config-schema.php b/includes/config-schema.php
index 0321e1905e6..a4e667287bc 100644
--- a/includes/config-schema.php
+++ b/includes/config-schema.php
@@ -797,7 +797,6 @@ return [
'ParsoidSettings' => [
'useSelser' => true,
],
- 'ParsoidFragmentInput' => false,
'ParsoidExperimentalParserFunctionOutput' => false,
'ParserEnableLegacyMediaDOM' => false,
'ParserEnableLegacyHeadingDOM' => false,
@@ -2908,7 +2907,6 @@ return [
'UrlProtocols' => 'array',
'TidyConfig' => 'object',
'ParsoidSettings' => 'object',
- 'ParsoidFragmentInput' => 'boolean',
'ParsoidExperimentalParserFunctionOutput' => 'boolean',
'NoFollowNsExceptions' => 'array',
'NoFollowDomainExceptions' => 'array',
diff --git a/includes/parser/Parsoid/Config/DataAccess.php b/includes/parser/Parsoid/Config/DataAccess.php
index 269d222f428..758c7550e74 100644
--- a/includes/parser/Parsoid/Config/DataAccess.php
+++ b/includes/parser/Parsoid/Config/DataAccess.php
@@ -387,8 +387,6 @@ class DataAccess extends IDataAccess {
) {
$parser = $this->prepareParser( $pageConfig, Parser::OT_PREPROCESS );
if ( $wikitext instanceof PFragment ) {
- // Note that Parsoid will not pass a PFragment to this method
- // unless $wgParsoidFragmentInput is true.
$result = [];
$index = 1;
$split = $wikitext instanceof WikitextPFragment ?

File Metadata

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:32 AM (18 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227553
Default Alt Text
(4 KB)

Event Timeline