Make WordPress Core

Ticket #48120: 48120.diff

File 48120.diff, 520 bytes (added by audrasjb, 5 years ago)

Wrap quick edit text into a paragraph block

  • src/wp-admin/post.php

    diff --git a/src/wp-admin/post.php b/src/wp-admin/post.php
    index ef3e73a829..2121d7bc0c 100644
    a b switch ( $action ) { 
    9595
    9696                $_POST['comment_status'] = get_default_comment_status( $post->post_type );
    9797                $_POST['ping_status']    = get_default_comment_status( $post->post_type, 'pingback' );
     98                $_POST['content'] = '<!-- wp:paragraph --><p>' . nl2br( $_POST['content'] ) . '</p><!-- /wp:paragraph -->';
    9899
    99100                edit_post();
    100101                wp_dashboard_quick_press();