diff --git a/includes/SkinVector.php b/includes/SkinVector.php index e2e0d648..c6129081 100644 --- a/includes/SkinVector.php +++ b/includes/SkinVector.php @@ -556,6 +556,13 @@ class SkinVector extends SkinMustache { $parentData = $this->decoratePortletsData( parent::getTemplateData() ); $featureManager = VectorServices::getFeatureManager(); + // SkinVector sometimes serves new Vector as part of removing the + // skin version user preference. TCho avoid T302461 we need to unset it here. + // This shouldn't be run on SkinVector22. + if ( $this->getSkinName() === 'vector' ) { + unset( $parentData['data-toc'] ); + } + // // Naming conventions for Mustache parameters. //