get_current_screen error when accessing wp-admin/ajax.php
-
I received an error, unrelated to any pods action, when doing an ajax action over wp-admin/ajax.php
I got the following error:
PHP Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /wp-content/plugins/pods/classes/fields/avatar.php:308
I fixed it by adding a function_exists( ‘get_current_screen’ ) to the allow_avatar_overwrite() method.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘get_current_screen error when accessing wp-admin/ajax.php’ is closed to new replies.