[wp-trac] [WordPress Trac] #62333: Simplify code structure and optimize conditional logic in REST API controllers
WordPress Trac
noreply at wordpress.org
Fri Nov 1 21:26:33 UTC 2024
#62333: Simplify code structure and optimize conditional logic in REST API
controllers
-------------------------+-------------------------------------------------
Reporter: | Owner: (none)
antonvlasenko |
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: minor | Resolution:
Keywords: has-patch | Focuses: rest-api, performance, coding-
| standards
-------------------------+-------------------------------------------------
Comment (by adamsilverstein):
Hey @antonvlasenko =- thanks for opening the ticket and PRs.
I'm curious what led you to these refactoring points, are you using a tool
to identify these fixes?
Is there some issue you are trying to address / what is your goal with
these changes - better compatibility or tooling, or ?
In general, we shy away from refactoring for refactoring's sake in core,
see https://make.wordpress.org/core/handbook/contribute/code-refactoring/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62333#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list