Skip to:
Content

BuddyPress.org

Changeset 7290


Ignore:
Timestamp:
07/22/2013 07:02:27 PM (12 years ago)
Author:
boonebgorges
Message:

Moves PHP4 constructor in BP_Groups_Widget below construct()

This help to avoid a "constructor defined twice" strict standards warning in
PHP 5.4+.

See #5108

File:
1 edited

Legend:

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

    r7210 r7290  
    2020
    2121class BP_Groups_Widget extends WP_Widget {
    22     function bp_groups_widget() {
    23         $this->_construct();
    24     }
    25 
    2622    function __construct() {
    2723        $widget_ops = array(
     
    3531            wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . "bp-groups/js/widget-groups{$min}.js", array( 'jquery' ), bp_get_version() );
    3632        }
     33    }
     34
     35    /**
     36     * PHP4 constructor
     37     *
     38     * For backward compatibility only
     39     */
     40    function bp_groups_widget() {
     41        $this->_construct();
    3742    }
    3843
Note: See TracChangeset for help on using the changeset viewer.