WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Moderation
Deprecated: Assigning the return value (1 post)

  1. Intervik
    Member
    Posted 1 year ago #

    Hi every Moderators

    Deprecated: Assigning the return value of new by reference is deprecated in ...\wp-content\plugins\bp-moderation\classes\bpModeration.php on line 117

    Is there any one who can point a direction to exhange this method before the fallback removes. Seems like a PHP4 fallback, and we don need that.

    Here is the code


    /**
    * why $_istance is an array? Zend 1 engine (php4) can't store a reference in
    * a static var, but can store it as a value of a static array
    */
    function &get_istance($cname = false)
    {
    static $_instance = null;

    if (null === $_instance && $cname) {

    bpModLoader::load_class($cname);
    $ref = & new $cname;

    $_instance = array(&$ref);
    }

    return $_instance[0];
    }

    ?

    /

    http://wordpress.org/extend/plugins/bp-moderation/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.