[wp-trac] [WordPress Trac] #48120: Quick draft dashboard widget creates classic block instead of paragraph block

WordPress Trac noreply at wordpress.org
Sat Jan 29 09:08:48 UTC 2022


#48120: Quick draft dashboard widget creates classic block instead of paragraph
block
------------------------------------+-----------------------------
 Reporter:  jeroenrotty             |       Owner:  SergeyBiryukov
     Type:  enhancement             |      Status:  reopened
 Priority:  normal                  |   Milestone:  5.4
Component:  Posts, Post Types       |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------
Changes (by costdev):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 See #54983.

 The changes in [https://core.trac.wordpress.org/changeset/47191 47191]
 introduced a regression whereby the Quick Draft feature would allow a user
 to create a draft post without any title or content.

 This is because the condition doesn't check if `$_POST['content']` is
 empty before inserting a paragraph.

 You can actually repeatedly click `Quick Draft` to create a bunch of
 empty, nameless posts.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48120#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list