You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loader::get_assets_context() assumes that get_current_screen return value is never null. get_current_screen can return a null value and because is_block_editor() is called directly, it results in the function throwing a fatal error.
It creates incompatibilities with the TD Composer plugin (for the theme Newspaper).
This can be easily solved by verifying the return of get_current_screen and returning 'classic' by default if it returns null.
The text was updated successfully, but these errors were encountered:
Version
Issue
Loader::get_assets_context()
assumes thatget_current_screen
return value is never null.get_current_screen
can return a null value and becauseis_block_editor()
is called directly, it results in the function throwing a fatal error.It creates incompatibilities with the TD Composer plugin (for the theme Newspaper).
This can be easily solved by verifying the return of
get_current_screen
and returning 'classic' by default if it returns null.The text was updated successfully, but these errors were encountered: