[buddypress-trac] [BuddyPress Trac] #6981: PHP debug notices when deleting a WordPress user

buddypress-trac noreply at wordpress.org
Thu May 12 18:50:33 UTC 2016


#6981: PHP debug notices when deleting a WordPress user
----------------------------------------+-----------------------
 Reporter:  henry.wright                |       Owner:  DJPaul
     Type:  defect (bug)                |      Status:  assigned
 Priority:  normal                      |   Milestone:  2.6
Component:  Component - Core            |     Version:  2.5.0
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |
----------------------------------------+-----------------------

Comment (by DJPaul):

 If you create a new user as described then immediately delete it, it never
 has a `last_activity` set. `BP_Core_User::delete_last_activity()` assumes
 it always will, and a null value gets passed to `wpdb->delete` which
 chokes `wpdb->prepare` which throws the "doing_it_wrong" error.

 I've added a test in r10748 to capture this.

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


More information about the buddypress-trac mailing list