[buddypress-trac] [BuddyPress] #4654: incorrect usage of $wpdb->prepare()

buddypress-trac noreply at wordpress.org
Thu Feb 7 08:47:16 UTC 2013

#4654: incorrect usage of $wpdb->prepare()
 Reporter:  anointed        |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  1.7
Component:  All Components  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
Changes (by chrisclayton):

 * status:  closed => reopened
 * resolution:  fixed =>


 1. Fresh install, with (current) trunk
 2. custom profile fields.
 3. add details to the profile field and change the visibility to, for
 example 'friends only'.
 4. log out and view profile.
 5. profit:

 [07-Feb-2013 08:07:31] PHP Notice:  wpdb::prepare was called
 <strong>incorrectly</strong>. wpdb::prepare() requires at least two
 arguments. Please see <a
 href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in
 WordPress</a> for more information. (This message was added in version
 3.5.) in /home/mosios/public_html/wp/wp-includes/functions.php on line

 From a quick glance, I'm pretty sure it's the exclude_fields_sql
 xprofile-classes.php#L167 but don't have time to look into it at the

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4654#comment:28>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list