[wp-trac] [WordPress Trac] #50562: REST API: Remove special-cased schema handling from themes controller
WordPress Trac
noreply at wordpress.org
Sun Jul 5 00:32:01 UTC 2020
#50562: REST API: Remove special-cased schema handling from themes controller
-------------------------------+--------------------
Reporter: TimothyBlynJacobs | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.5
Component: REST API | Version: 5.4
Severity: normal | Keywords:
Focuses: |
-------------------------------+--------------------
The themes controller has some [https://github.com/WordPress/wordpress-
develop/blob/798cd1e20b3eaa6bc35ff78e97b3361885f7530e/src/wp-includes
/rest-api/endpoints/class-wp-rest-themes-controller.php#L245 special
handling] of multi-type schemas to work around the limitations of the REST
API sanitizer.
Now that #50300 has been committed, we can remove this handling which will
make this code more robust to 3rd party schemas.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50562>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list