Closed grandeljay closed 7 months ago
Currently the theme fails to check if THEME_SETTINGS['allowed_blocks'][ $editor_context->post->post_type ]
is an array. I'm guessing you don't have an array set for the post type you're trying to edit, but a string (like 'all', which shouldnt be set on a post type level)
Does this mean its a user error or a theme error? Should I not set all
within the theme settings for allowed blocks? Or would it make more sense for the theme to check if allowed_blocks
is a string (all
) or array?
Despite your advice not to use air-light as a parent theme I have, which has worked great for me until now. I am using PHP 8.0 and have WPML installed.
When I attempt to edit a post/page I get the following error:
In case you can't reproduce this, any ideas?