Breaks routes if they change
-
I got stuck on this for a considerable amount of time, thinking it was something to do with how I was engineering a custom end point.
If you add/edit an endpoint, you need to go into the rest manager and save. So if this plugin is used in dev, like in my case to track routes and ensure they are visible and keep an eye on what plugins are added routes that are needed / are not you will run into issues.
So I think if $route_settings[‘active’] is not set in rest_manager_get_active_routes it should add it as a new route and active by default.
Just my thoughts, Thankfully there is a filter I can use to do it manually for now “rest_manager_active_routes”.
If you want to see my epic time sink:
https://wordpress.stackexchange.com/questions/301067/register-rest-route-regex-option-for-base64-or-alternate/301094#301094I blame myself for not ensuring I was recreating the issue with plugins disabled, regardless though I can see this same thing coming up for others.
- The topic ‘Breaks routes if they change’ is closed to new replies.