[wp-trac] [WordPress Trac] #51247: Uncaught Error rest-api.php:2209
WordPress Trac
noreply at wordpress.org
Fri Sep 4 15:41:22 UTC 2020
#51247: Uncaught Error rest-api.php:2209
-------------------------------+------------------------------
Reporter: rpayne7264 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 5.5
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: rest-api
-------------------------------+------------------------------
Changes (by rpayne7264):
* focuses: => rest-api
Comment:
Here you go:
{{{
$taxonomy = get_taxonomy( $term->taxonomy );
if ( ! $taxonomy ) {
return '';
}
$controller = $taxonomy->get_rest_controller();
if ( ! $controller ) {
return '';
}
}}}
This is in function **rest_get_route_for_term** in .../wp-includes/rest-
api.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51247#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list