Support » Plugin: The Events Calendar » Disable REST API – Bug

  • Resolved integritive

    (@integritive)


    I’ve been running ADA compliance scans on a few of my sites and this keeps coming up. They keep flagging a broken link in the <head>. This one in particular.. “<link rel=”htt://theeventscalendar.com” href=”https://www.hometrustbanking.com/wp-json/tribe/events/v1/”>&#8221;. First off, there’s a typo in the “rel” attribute. You have “htt://” which should be “http://&#8221;. That’s not the link these scans are fussing about though.

    The issue is with the href attribute and the url request returning a 404 status. We’re not using the REST API on any of our sites so we end up with this link in the head of every page that returns a 404 json response.

    Is there a hook we could drop in our functions file to dequeue this reference while this bug is addressed? Ideally we would have an option within the tribe settings to simply disable the rest api. There’s no reason to load this resource if you’re not utilizing the API. Disabling it would also prevent returning a 404 response on every page.

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Disable REST API – Bug’ is closed to new replies.