WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/13/2018 07:28:26 PM (3 years ago)
Author:
desrosj
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/class-wp-editor.php

    r44119 r44120  
    8383            $settings,
    8484            array(
    85                 'wpautop'             => true,
     85                // Disable autop if the current post has blocks in it.
     86                'wpautop'             => ! has_blocks(),
    8687                'media_buttons'       => true,
    8788                'default_editor'      => '',
Note: See TracChangeset for help on using the changeset viewer.