• Resolved reactionjordan

    (@reactionjordan)


    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#301094

    I 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author redcastor

    (@redcastor)

    Hello,

    Thanks for your feedback. I correct this tomorrow.

    The default option route is not correctly set if route not exist in “rest-manager_routes” wp options.
    I fix this by add a set default options to the rest route.

    Plugin Author redcastor

    (@redcastor)

    Ok Resolved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Breaks routes if they change’ is closed to new replies.