Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#48339 closed defect (bug) (invalid)

Remove empty DO statement

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

Description

Found empty DO statement for WP Block Parser

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

@dkarfa
7 years ago

#1 @ocean90
7 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

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 years ago

  • Component GeneralEditor

#3 @SergeyBiryukov
7 years 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.