Make WordPress Core

Changeset 43758 for branches/5.0


Ignore:
Timestamp:
10/19/2018 01:42:15 AM (8 years ago)
Author:
pento
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.

See #45113.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/class-wp-editor.php

    r43754 r43758  
    8282
    8383                $set = wp_parse_args( $settings, array(
    84                         'wpautop'             => true,
     84                        // Disable autop if the current post has blocks in it.
     85                        'wpautop'             => ! has_blocks(),
    8586                        'media_buttons'       => true,
    8687                        'default_editor'      => '',
Note: See TracChangeset for help on using the changeset viewer.