Hello! I run a few websites, and I’ve been getting an error when I try to edit any Global Block. Here is the screenshot of the error - https://ibb.co/NSwxsK1
I noticed that there’s a specific code in every website that seems to be conflicting with Global Blocks. I have a custom PHP code to redirect 404 page to home page, which is listed below.
function WPTime_redirect_404_to_homepage(){
if( is_404() ){
wp_redirect( home_url(), 301 );
exit();
}
}
add_action('template_redirect', 'WPTime_redirect_404_to_homepage');
Just wanted to bring it to your attention.