Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/16/2011 04:47:36 PM (16 years ago)
Author:
djpaul
Message:

Add PHP5-style constructors to classes. Fixes #3148, props Backie

File:
1 edited

Legend:

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

    r3961 r4211  
    1111class BP_Groups_Widget extends WP_Widget {
    1212        function bp_groups_widget() {
     13                $this->_construct();
     14        }
     15
     16        function __construct() {
    1317                $widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ) );
    14                 parent::WP_Widget( false, __( 'Groups', 'buddypress' ), $widget_ops );
     18                parent::__construct( false, __( 'Groups', 'buddypress' ), $widget_ops );
    1519
    1620                if ( is_active_widget( false, false, $this->id_base ) ) {
Note: See TracChangeset for help on using the changeset viewer.