WordPress.org

Support

Support » Plugins and Hacks » BuddyPress Registration Options » [Resolved] Patch for "wpdb::prepare() requires at least two arguments" issue

[Resolved] Patch for "wpdb::prepare() requires at least two arguments" issue

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Patch for "wpdb::prepare() requires at least two arguments" issue’ is closed to new replies.
Skip to toolbar