[buddypress-trac] [BuddyPress Trac] #5843: WP_Screen may be null if remove_signups_from_user_query is called from within admin_init hook

buddypress-trac noreply at wordpress.org
Fri Sep 5 22:37:07 UTC 2014


#5843: WP_Screen may be null if remove_signups_from_user_query is called from
within admin_init hook
----------------------------+---------------------
 Reporter:  pauldewouters   |       Owner:  imath
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  2.1
Component:  Administration  |     Version:  2.0
 Severity:  normal          |  Resolution:  fixed
 Keywords:  commit          |
----------------------------+---------------------
Changes (by imath):

 * owner:   => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"8984"]:
 {{{
 #!CommitTicketReference repository="" revision="8984"
 Make sure the current administration screen ID is set before checking its
 value

 In {{{BP_Members_Admin->remove_signups_from_user_query()}}}, to avoid a
 notice error, we need to check that {{{get_current_screen()->id}}} is set.

 Props boonebgorges

 Fixes #5843
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5843#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list