While I created countless themes, I’m currently creating my first theme for the WordPress.org theme repo. To ensure a smooth reviewing process, I’m using the plugin Theme Check as mentioned in the theme review handbook.
After adding both composer
and npm
to my theme, I ended up with an Fatal error: Allowed memory size of 536870912 bytes exhausted
error. Investigating this issue brought me to:
- https://github.com/WordPress/theme-check/issues/4
- https://github.com/WordPress/theme-check/pull/9
- https://github.com/WordPress/theme-check/issues/103
I found the solution to my specific issue in:
Thus, I went ahead, opened the main.php
in the root folder of the plugin and replaced
with
While this might not be the best solution to solve this issue, it allows me to analyse my theme.