[buddypress-trac] [BuddyPress] #4956: BP_Group_Extension::display no longer displays page content

buddypress-trac noreply at wordpress.org
Thu Apr 25 15:30:08 UTC 2013


#4956: BP_Group_Extension::display no longer displays page content
--------------------------+------------------------------
 Reporter:  dconrad       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Groups        |     Version:  1.7
 Severity:  blocker       |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by boonebgorges):

 Thanks very much for sharing, dconrad.

 I've tested it out, and the display() method is getting called fine for me
 - I see BULLETIN BOARD when I click on the 'Bulletin Board' tab of a
 group.

 It's possible that this has something to do with the way you're
 bootstrapping the plugin. Here's how I'm doing it (in wp-content/bp-
 custom.php):

 {{{
 function bp4956() {
     include( __DIR__ . '/wrc-classes.php' );
 }
 add_action( 'bp_setup_globals', 'bp4956' );
 }}}

 By loading at 'bp_setup_globals', I can be ensured that I'm loading
 *after* `BP_Group_Extension` has been defined (so I don't get a fatal
 error), but *before* 'bp_actions', which is where the display callback
 gets hooked.

 How are you doing it? Are you including it from functions.php of your
 theme or something like that?

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


More information about the buddypress-trac mailing list