Make WordPress Core


Ignore:
Timestamp:
06/08/2024 11:10:58 AM (12 months ago)
Author:
dmsnell
Message:

HTML API: Fix three small type-related bugs.

This applies three fixes that appeared as part of
adding type annotations to the HTML API.

Developed in https://github.com/WordPress/wordpress-develop/pull/6754
Discussed in https://core.trac.wordpress.org/ticket/61399

Props jonsurrell.
See #61399.
Follow-up to [55203], [56274].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/html-api/class-wp-html-processor.php

    r58363 r58364  
    544544        if (
    545545            WP_HTML_Stack_Event::POP === $this->current_element->operation &&
    546             ! static::expects_closer( $this->current_element->token->node_name )
     546            ! static::expects_closer( $this->current_element->token )
    547547        ) {
    548548            return $this->next_token();
Note: See TracChangeset for help on using the changeset viewer.