WordPress.org

Make WordPress Core

Ticket #48340: 48340.patch

File 48340.patch, 566 bytes (added by dkarfa, 8 months ago)
  • src/wp-includes/class-wp-block-parser.php

     
    288288                                 * have to assume that multiple closers are missing
    289289                                 * and so we'll collapse the whole stack piecewise
    290290                                 */
    291                                 while ( 0 < count( $this->stack ) ) {
     291                                $stack_count = count( $this->stack );
     292                                while ( 0 < $stack_count ) {
    292293                                        $this->add_block_from_stack();
    293294                                }
    294295                                return false;