Follow-up to T372499.
// Temporary hack to deal with T351461#9358034: this should be a // call to `setJsConfigVar` but Parsoid is currently reprocessing // content from extensions. (T372592) // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged @$pout->addJsConfigVars( 'wgDiscussionToolsPageThreads', $threadsJSON );
(see T351461#9358034 and T372592)
addJsConfigVars() is hard-deprecated since https://gerrit.wikimedia.org/r/c/mediawiki/core/+/943642 (August 2024). A solution is needed somewhat urgently.