WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Justin Foell
    Member
    Posted 1 year 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 );
     	}
     }

    http://wordpress.org/extend/plugins/bp-registration-options/

  2. jibbius
    Member
    Plugin Contributor

    Posted 1 year 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. Justin Foell
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Contributor

    Posted 1 year ago #

    No worries.
    Thanks all :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.