[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:09:13 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 boonebgorges):

 Replying to [comment:4 wpmuguru]:
 > I meant check for BPDB.

 Right, which means that then plugins like SharDB and HyperDB will be
 responsible for providing their own BPDB classes? It seems a shame to
 require such a large amount of code to be duplicated just because of
 clashing class names. It also means that those plugin authors (like you)
 will have to port changes to BP's BPDB to their own plugins every time a
 change is made. Seems onerous.

 Maybe we could be tricky here. What if we put all the important stuff in
 BPDB into a class called BPDB_Core (which extends WPDB), and then created
 *another* class BPDB which extends BPDB_Core (and does nothing else). That
 way, plugins like yours could extend BPDB_Core and automatically inherit
 all BP core modifications. A bit convoluted?

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


More information about the buddypress-trac mailing list