Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/09/2016 01:58:10 PM (9 years ago)
Author:
xknown
Message:

Add PHP 5.x style constructors.

Keep also the PHP 4.x style constructors to avoid breaking code that depends on these methods.

See #3033

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bb-includes/class.bb-walker.php

    r2395 r6153  
    163163    }
    164164
    165     function BB_Loop( &$elements ) {
     165    function __construct( &$elements ) {
    166166        $this->elements = $elements;
    167167        if ( !is_array($this->elements) || empty($this->elements) )
    168168            return $this->elements = false;
     169    }
     170
     171    function BB_Loop( &$elements ) {
     172        $this->__construct( $elements );
    169173    }
    170174
Note: See TracChangeset for help on using the changeset viewer.