BuddyPress Registration Options
[resolved] Patch for "wpdb::prepare() requires at least two arguments" issue (5 posts)

  1. jrfoell
    Posted 3 years ago #

    Not sure if this is in your repository yet, but it was spitting out a warning, so I thought I'd share my quick fix.

    --- /tmp/core.php	2013-01-24 17:55:39.000000000 -0500
    +++ includes/core.php	2013-01-24 18:03:41.000000000 -0500
    @@ -185,7 +185,7 @@
     	global $wpdb, $user_ID, $bp_moderate, $bp;
     	if ( $bp_moderate ) {
     		$sql = "update ".$wpdb->base_prefix."bp_activity set hide_sitewide=1 where user_id=$user_ID";
    -		$wpdb->query( $wpdb->prepare( $sql ) );
    +		$wpdb->query( $sql );


  2. jibbius
    Posted 3 years ago #

    I believe there's a few additional changes needed (for the same issue).
    You can download my version here: https://github.com/jibbius/bp-registration-options-wp3.5

  3. jrfoell
    Posted 3 years ago #

    Thanks - looks good.

    I'll try to send a friendly virtual nudge to someone at webdevstudios
    to see if they can get these changes merged into the plugin.

  4. Brad Williams
    Posted 3 years ago #

    Awesome! I'll work on merging the changes in and pushing a new version this week. We'll make sure to give you credit as well, thanks!

  5. jibbius
    Posted 3 years ago #

    No worries.
    Thanks all :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Registration Options
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.