Commit ca0eee1
authored
feat: put Template Library behind WU_TEMPLATE_LIBRARY_ENABLED feature flag (#599)
* Revert "feat: rename Primary Domain to Main WP Multisite WaaS Domain with red toggle and confirmation (#438)"
This reverts commit a205ea8.
* feat: put Template Library behind WU_TEMPLATE_LIBRARY_ENABLED feature flag
The Template Library admin page is now hidden by default since server-side
functionality is not complete. Developers can enable it by defining:
define('WU_TEMPLATE_LIBRARY_ENABLED', true);
in wp-config.php before the plugin loads.
- Add WU_TEMPLATE_LIBRARY_ENABLED constant to constants.php (defaults to false)
- Wrap Template_Library_Admin_Page instantiation with feature flag check
- Include inline documentation explaining the feature flag purpose1 parent c25a33a commit ca0eee1
2 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
859 | 870 | | |
860 | 871 | | |
861 | 872 | | |
| |||
0 commit comments