[buddypress-trac] [BuddyPress Trac] #5649: Missing argument 2 in bp-xprofile-classes

buddypress-trac noreply at wordpress.org
Sat May 17 20:06:10 UTC 2014


#5649: Missing argument 2 in bp-xprofile-classes
--------------------------+-------------------
 Reporter:  danbp         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.0.1
Component:  Members       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-------------------
 BP 2.0.1/wp 3.9.1 single install (php 5.4.12 - mySql 5.6.12 apache 2.4.4)
 debug mode false

 When using ''bp_after_has_profile_parse_args'' i get a php warning
 Missing argument 2 for wpdb::prepare()called by bp-xprofile-
 classes.php:156

 Changed the line to following and the warning disapeared.
 ''$where_sql = $wpdb->prepare( "WHERE g.id = %d NOT
 IN({$exclude_groups})", $profile_group_id );''
 But not sure it's right.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5649>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list