-
Bug
-
Resolution: Released
-
Should have
-
None
-
2
-
Admin Panel
-
Sprint #142
We added a WordPress option page to toggle features (e.g. for https://jira.greenpeace.org/browse/PLANET-5189). These features can affect which menu items are shown in the backend. However because of how WordPress processes these changes, the WordPress admin menu is rendered before the setting change is processed. So the page you see after saving does not reflect the current settings and you need to refresh the page again to see the new feature settings reflected in the menu.
Example (test instance of other ticket which triggers the issue) https://k8s.p4.greenpeace.org/test-deimos/wp-admin/admin.php?page=planet4_settings_features
If you toggle the "Image Archive" option, you initially don't see changes to the WP menu but you do after refreshing.
Proposed solution: We could set up something that forces a redirect after the settings were saved, but only for the "/wp-admin/admin.php?page=planet4_settings_features" page as this does increase the page load time.
- blocks
-
PLANET-5292 Create a Planet 4 setting toggle for the EN Block
- CLOSED
- relates to
-
PLANET-5189 Refactor Medialibrary plugin and integrate into master theme
- CLOSED