Skip to content

get_current_screen() error (with New User Approve Plugin) #75

Description

@apintocr

I get the following error when I use this with New User Approve Plugin

PHP Fatal error:  Uncaught Error: Call to undefined function get_current_screen() in \plugins\new-user-approve\includes\user-list.php:204
Stack trace:
#0 \wp-includes\plugin.php(600): pw_new_user_approve_user_list->filter_by_status(Object(WP_User_Query))
#1 \wp-includes\class-wp-user-query.php(526): do_action_ref_array('pre_user_query', Array)
#2 \wp-includes\class-wp-user-query.php(82): WP_User_Query->prepare_query(Array)
#3 \wp-includes\user.php(556): WP_User_Query->__construct(Array)
#4 \plugins\tailor\includes\helpers\helpers-general.php(62): get_users()
#5 \plugins\tailor\includes\elements\class-user.php(51): tailor_get_users()
#6 \plugins\tailor\includes\elements\abstract-element.php(285): Tailor_User_Element->register_controls()
#7 \plugins\tailor\includes\elements\abstract-el in \plugins\new-user-approve\includes\user-list.php on line 204

Any Tips?
NOTE: Also posted on New User Approve Git Issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions