Some routes have multiple endpoints (support multiple HTTP methods) which causes all of the registered endpoints' permission_callback to be ran as WordPress determines which HTTP methods are available for each registered REST API route.
This implies two things for us:
We shouldn't use log methods that display errors (but WordPress VIP hosting doesn't allow file writes outside of /wp-content/uploads)
We shouldn't use advanced permission checks, such as Asana_Interface::has_connected_asana()
Some routes have multiple endpoints (support multiple HTTP methods) which causes all of the registered endpoints'
permission_callback
to be ran as WordPress determines which HTTP methods are available for each registered REST API route.This implies two things for us:
/wp-content/uploads
)Asana_Interface::has_connected_asana()
Relates to https://github.com/PurpleTurtleCreative/completionist/issues/134