get_current_screen bricks wordpress on update
-
Hi,
The latest update seems to cause a fatal error. Rerolling to 1.2.0 works fine.
Fatal error: Uncaught Error: Call to undefined function ACFFieldBlocks\get_current_screen() in plugins/acf-field-blocks/inc/class-blocks.php:135
Edit:
I think the issue is you do $current_screen = get_current_screen(); before checking if (is_admin). When updating, for example, the admin screen isn’t set up and the site crashes due to this call.The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘get_current_screen bricks wordpress on update’ is closed to new replies.