Fix the default feature checker to work if the request doesn't have a LocalSite

Review Request #9107 — Created July 28, 2017 and submitted

David Trowbridge
Review Board

Some of our URLs won't end up attaching a local_site attribute to the request
(for example, pages in the admin site, or the manual updates required page). In
this case, we still want {% is_feature_enabled %} to work without crashing.

  • Called the is_feature_enabled tag from the base template and was able to view
    pages that crashed before.
  • Ran unit tests.
Barret Rennie
  1. Ship It!
David Trowbridge
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (73a3b3e)