Make WordPress Core

Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#48339 closed defect (bug) (invalid)

Remove empty DO statement

Reported by: dkarfa Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:


Found empty DO statement for WP Block Parser

Attachments (1)

48339.patch (449 bytes) - added by dkarfa 7 months ago.

Download all attachments as: .zip

Change History (4)

7 months ago

#1 @ocean90
7 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

WP Block Parser is part of the @wordpress/block-serialization-default-parser package. Please submit any changes at https://github.com/WordPress/gutenberg first. Thank you!

From a quick look, your patch will break processing the tokens.

#2 @SergeyBiryukov
7 months ago

  • Component changed from General to Editor

#3 @SergeyBiryukov
7 months ago

Although the loop itself is empty, repeatedly calling $this->proceed() is important here and cannot be removed.

Note: See TracTickets for help on using tickets.