@pauldewouters
10 years, 3 months ago
ah, what’s the earliest supported version? Answer: 3.6 or higher
Referencing ticket: https://buddypress.trac.wordpress.org/ticket/5843
Hey Paul,
Thanks, I’ll open a trac ticket
Thanks for your reply. So, did a little research, and Codex says:
The function [get_current_screen] returns null if called from the admin_init hook. It should be OK to use in a later hook.
get_current_screen
So BuddyPress could check whether the remove_signups_from_user_query method was called through the admin_init hook and return if so:
remove_signups_from_user_query
admin_init
if ( ( doing_action( 'admin_init' ) ) || $this->users_page != get_current_screen()->id ) { return; }
This fixes the issue for me.