Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/07/2009 06:46:37 PM (17 years ago)
Author:
apeatling
Message:

Fixes #983

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-classes.php

    r1807 r1809  
    926926        var $nav_item_name = false;
    927927       
     928        var $display_hook = 'groups_custom_group_boxes';
    928929        var $template_file = 'plugin-template';
    929930       
     
    10041005                        /* Hook the group home widget */
    10051006                        if ( $bp->current_component == $bp->groups->slug && $bp->is_single_item && ( !$bp->current_action || 'home' == $bp->current_action ) )
    1006                                 add_action( 'groups_custom_group_boxes', array( &$this, 'widget_display' ) );
     1007                                add_action( $this->display_hook, array( &$this, 'widget_display' ) );
    10071008                }
    10081009        }
     
    10201021                return false;
    10211022       
    1022         $extension = new $group_extension_class;
    1023         add_action( 'wp', array( &$extension, '_register' ), 2 );
     1023        /* Register the group extension on the plugins_loaded action so we have access to all plugins */
     1024        add_action( 'plugins_loaded', create_function( '', '$extension = new ' . $group_extension_class . '; add_action( "wp", array( &$extension, "_register" ), 2 );' ) );
    10241025}
    10251026
Note: See TracChangeset for help on using the changeset viewer.