WordPress.org

Make WordPress Core

Ticket #48341: 48341.patch

File 48341.patch, 641 bytes (added by dkarfa, 7 months ago)
  • src/wp-includes/class-wp-block-parser.php

     
    445445                        ? json_decode( $matches['attrs'][0], /* as-associative */ true )
    446446                        : $this->empty_attrs;
    447447
    448                 /*
    449                  * This state isn't allowed
    450                  * This is an error
    451                  */
    452                 if ( $is_closer && ( $is_void || $has_attrs ) ) {
    453                         // we can ignore them since they don't hurt anything.
    454                 }
    455 
    456448                if ( $is_void ) {
    457449                        return array( 'void-block', $name, $attrs, $started_at, $length );
    458450                }