diff --git a/VisualEditor.hooks.php b/VisualEditor.hooks.php index 77466e236d..8bc41ba766 100644 --- a/VisualEditor.hooks.php +++ b/VisualEditor.hooks.php @@ -132,7 +132,9 @@ class VisualEditorHooks { if ( isset( $params['venoscript'] ) ) { $req->response()->setCookie( 'VEE', 'wikitext', 0, [ 'prefix' => '' ] ); $user->setOption( 'visualeditor-editor', 'wikitext' ); - $user->saveSettings(); + DeferredUpdates::addCallableUpdate( function () use ( $user ) { + $user->saveSettings(); + } ); return true; }