Fatal error: Call to undefined function get_current_screen()
-
Was seeing this error when changing a user password via the WooCommerce My Account page. Found that the user_profile_update function was not loading a necessary file. Added a require statement to that function (line 686 of /modules/user-groups/user-groups.php in my edit-flow plugin) and that fixed it, like so:
function user_profile_update( $errors, $update, $user ) { require_once(ABSPATH . 'wp-admin/includes/screen.php');
Hope this fix can be added by the developers, and hope it helps someone else.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal error: Call to undefined function get_current_screen()’ is closed to new replies.