[wp-trac] [WordPress Trac] #58918: HTML API: Adjust code stying to Gutenberg's linter's preferences
WordPress Trac
noreply at wordpress.org
Mon Aug 7 13:49:12 UTC 2023
#58918: HTML API: Adjust code stying to Gutenberg's linter's preferences
------------------------------+-------------------------------
Reporter: dmsnell | Owner: Bernhard Reiter
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: HTML API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: coding-standards
------------------------------+-------------------------------
Changes (by Bernhard Reiter):
* owner: (none) => Bernhard Reiter
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"56363" 56363]:
{{{
#!CommitTicketReference repository="" revision="56363"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58918#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list