Opened 5 years ago
Closed 5 years ago
#47578 closed defect (bug) (fixed)
Call static methods the right way
Reported by: | andizer | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | REST API | Keywords: | needs-patch |
Focuses: | rest-api | Cc: |
Description
I saw there were to call to methods that are declared static
but called accessed $this
, so I've fixed these two.
Attachments (2)
Change History (7)
This ticket was mentioned in Slack in #core-restapi by timothybjacobs. View the logs.
5 years ago
#2
@
5 years ago
- Keywords needs-patch added; has-patch removed
- Milestone changed from Awaiting Review to 5.3
- Version set to 4.4
Note: See
TracTickets for help on using
tickets.
Good catch!
There are a couple of other places where this could be fixed as well. In
rest_preload_api_request()
and inWP_REST_Controller::prepare_response_for_collection()