Classic Editor: Disable the wpautop TinyMCE plugin on block posts.

As the block editor adds its own `<p>` tags, disabling the wpautop stops the classic editor from removing them.

Props pento.

Merges [43758] to trunk.

See #45113.

git-svn-id: https://develop.svn.wordpress.org/trunk@44120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2018-12-13 19:28:26 +00:00
parent 26c034a044
commit 6f88378c1f
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ final class _WP_Editors {
$set = wp_parse_args(
$settings,
array(
'wpautop' => true,
// Disable autop if the current post has blocks in it.
'wpautop' => ! has_blocks(),
'media_buttons' => true,
'default_editor' => '',
'drag_drop_upload' => false,