[wp-trac] [WordPress Trac] #50717: rest_no_routes with PHP 7.3
WordPress Trac
noreply at wordpress.org
Tue Jul 21 10:30:19 UTC 2020
#50717: rest_no_routes with PHP 7.3
--------------------------+------------------------------
Reporter: yozana | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by yozana):
Sorry: missed the register route:
register_rest_route('api/v2', '/job/(?P<>[0-9]+)', [
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'get_job'),
//'permission_callback' => array( $this,
'get_items_permissions_check' ),
'permission_callback' => array( $this,
'get_permissions_worker_or_candidate' ),
'args' => $this->get_collection_params(),
]);
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50717#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list