Skip to content
This repository has been archived by the owner. It is now read-only.

Make WP_Widget_Media::get_instance_schema() public #51

westonruter opened this issue Apr 6, 2017 · 0 comments


None yet
1 participant
Copy link

commented Apr 6, 2017

Currently the WP_Widget_Media::get_instance_schema() method is protected for the sake of:

This is protected because it may become part of WP_Widget eventually.

See #35574 (Add REST API JSON schema information to WP_Widget).

The idea was that it could be made protected while we wait for #35574 to land. Nevertheless, if that ticket results in get_instance_schema becoming public then any existing media widget extensions in plugins which retain protected visibility will then fatal error, which can be seen here:

So I think we should just go ahead and make it public now, especially if we can validate that #35574 is indeed desired and should become part of WP_Widget itself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.