fix: Wrong callback function for the Rest API endpoints.#79
fix: Wrong callback function for the Rest API endpoints.#79levinbaria wants to merge 1 commit intoWordPress:trunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #79 +/- ##
=========================================
Coverage 83.33% 83.33%
Complexity 96 96
=========================================
Files 8 8
Lines 516 516
=========================================
Hits 430 430
Misses 86 86
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@emdashcodes, can you confirm it is a bug? |
That (and the passing tests) is only because we're not currently using If there isn't a specific reason to deviate, I'd recommend we follow core as proposed here(implement (Code LGTM and I don't think this needs tests either, not "approving" so it doesn't get accidently merged before @emdashcodes can weigh in) |
Let's keep things as they are 👍🏻 @levinbaria, thank you for bringing this potential issue to our attention. |
I'm sorry for missing this one last week while I was AFK a few days. From my understanding, this is how we want to do things. I based this on core which only passes
Yup, this is exactly how things are implemented right now.
Just to clarify -- we don't want this change. |
Fix the broken REST schema callback in the WP_REST_Abilities_List_Controller, as it is calling get_public_item_schema instead of get_item_schema.
Fixes #78