Add 'wpTextbox1' to parameters that disable new topic tool

Bug: T316333
Change-Id: Id73af455df97b26334bf8a450bc6d0ac95deb9bd
This commit is contained in:
Bartosz Dziewoński 2022-10-08 20:49:34 +02:00
parent 0e6cd67d16
commit cf4b6015a3

View file

@ -447,7 +447,9 @@ class HookUtils {
// Adding a new topic with preloaded text is not supported yet (T269310)
!(
$req->getCheck( 'editintro' ) || $req->getCheck( 'preload' ) ||
$req->getCheck( 'preloadparams' ) || $req->getCheck( 'preloadtitle' )
$req->getCheck( 'preloadparams' ) || $req->getCheck( 'preloadtitle' ) ||
// Switching or previewing from an external tool (T316333)
$req->getCheck( 'wpTextbox1' )
) &&
// User has new topic tool enabled (and not using &dtenable=0)
static::isFeatureEnabledForOutput( $out, static::NEWTOPICTOOL )