wp-parsely
wp-parsely copied to clipboard
REST API Refactor: Apply fixes/suggestions from the other PRs
Description
This PR applies the suggestions that have been added to both #2731 and #2735
#2731
- Changed the REST API description fields to be more descriptive of what they meant to do.
#2735
- Converted
get_endpoint_name
andget_route_prefix
to static methods - Replaced
editor-sidebar
anddashboard-widget
strings with the correct call to the staticget_endpoint_name
method.
Motivation and context
- Apply pending feedback from #2731 and #2735
How has this been tested?
Tested locally and validated that the tests still passing.