[buddypress-trac] [BuddyPress] #3549: Incompatibility between recent SharDB and bbPress forum setup routine

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Sep 5 15:00:24 UTC 2011


#3549: Incompatibility between recent SharDB and bbPress forum setup routine
--------------------------+------------------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  defect        |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Forums        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by wpmuguru):

 Replying to [comment:3 boonebgorges]:
 > Yeah. The only problem with this approach is that it'd mean accounting
 in BP for all such plugins, or requiring that all such plugins are
 specifically BP-aware. Ideally, we'd be able to sniff, out of the existing
 $wpdb global, the name of the class of which it's an implementation, and
 then define BPDB as extending *that* class. I don't think such a thing is
 possible with PHP, is it?

 Sorry, I should have been clearer. I meant check for BPDB.

 {{{
 if ( ! class_exists( 'BPDB' ) ) :
 class BPDB extends WPDB {
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3549#comment:4>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list