Make WordPress Core


Ignore:
Timestamp:
08/07/2023 01:48:55 PM (18 months ago)
Author:
Bernhard Reiter
Message:

HTML API: Adjust code styling to Gutenberg's linter's preferences.

Adjust the code style according to the rules that the linting process in Gutenberg requires.

There are only a couple code changes that should have no effect on the runtime:

  • A missing check to verify that only UTF-8 is supported has been added (brought up because it was identified as an undefined variable).
  • A few return false; statements have been added to avoid having the linter complain that functions don't return a value despite indicating they return bool. The functions are stubs for coming support and currently throw, so the return statements are unreachable.

Props dmsnell, costdev, davidbaumwald, peterwilsoncc, SergeyBiryukov.
Fixes #58918.

File:
1 edited

Legend:

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

    r56274 r56363  
    3737     * Name of node; lowercase names such as "marker" are not HTML elements.
    3838     *
    39      * For HTML elements/tags this value should come from {@see WP_HTML_Processor::get_tag}.
     39     * For HTML elements/tags this value should come from WP_HTML_Processor::get_tag().
    4040     *
    4141     * @since 6.4.0
     42     *
     43     * @see WP_HTML_Processor::get_tag()
    4244     *
    4345     * @var string
Note: See TracChangeset for help on using the changeset viewer.