diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index 285a9537b9..2ebba0549f 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -566,7 +566,7 @@ class ApiVisualEditor extends ApiBase { ]; if ( $params['paction'] === 'parse' || $params['paction'] === 'wikitext' || - $params['preload'] + ( $params['preload'] && $content ) ) { $result['content'] = $content; }