Skip to content

Exclude old single widgets from REST API #6

@westonruter

Description

@westonruter

In order for a widget to be safely exposed in the REST API (that is, for unauthenticated requests), the widget needs permission callbacks to indicate whether or not fields in the instance are public or not. A schema has been proposed for being added to WP_Widget in #35574. Since old single widgets do not utilize WP_Widget they would not have a schema available, and since they are suggested to be deprecated in #35656, I suggest that they should be inherently not be exposed via the REST API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions