Make WordPress Core

Opened 5 years ago

Closed 3 years ago

#48120 closed enhancement (fixed)

Quick draft dashboard widget creates classic block instead of paragraph block

Reported by: jeroenrotty's profile jeroenrotty Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.4 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch dev-feedback
Focuses: Cc:

Description

It would be nice if it creates it in a Gutenberg paragraph block instead.

Attachments (1)

48120.diff (520 bytes) - added by audrasjb 5 years ago.
Wrap quick edit text into a paragraph block

Download all attachments as: .zip

Change History (7)

#1 @SergeyBiryukov
5 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

#2 @audrasjb
5 years ago

  • Keywords has-patch dev-feedback added; needs-patch removed
  • Owner set to audrasjb
  • Severity changed from minor to normal
  • Status changed from new to assigned
  • Type changed from feature request to enhancement

Hi there, and thanks for the ticket @jeroenrotty !

Looks like an interesting enhancement.

48120.diff is a first workaround. Works well, but worth adding dev-feedback keyword to see if we can do that in a better way (which is probably the case 😁).

Changing ticket type from Feature request to Enhancement as it's not a new feature in itself :-)

Cheers,
Jb

@audrasjb
5 years ago

Wrap quick edit text into a paragraph block

#3 @SergeyBiryukov
5 years ago

  • Milestone changed from Future Release to 5.4
  • Owner changed from audrasjb to SergeyBiryukov
  • Status changed from assigned to reviewing

#4 @SergeyBiryukov
5 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 47191:

Posts, Post Types: Wrap text submitted via Quick Draft dashboard widget in the Paragraph block.

Props audrasjb, jeroenrotty.
Fixes #48120.

#5 @costdev
3 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

See #54983.

The changes in 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.

Version 0, edited 3 years ago by costdev (next)

#6 @costdev
3 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.