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/functions.bb-deprecated.php

    r2475 r6153  
    890890if ( !class_exists( 'WP_User' ) ) : // Deprecated in BackPress not WordPress
    891891class WP_User extends BP_User {
     892    function __construct( $id, $name = '' ) {
     893        return parent::BP_User( $id, $name );
     894    }
    892895    function WP_User( $id, $name = '' ) {
    893         return parent::BP_User( $id, $name );
     896        $this->__construct( $id, $name );
    894897    }
    895898}
Note: See TracChangeset for help on using the changeset viewer.