Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/15/2016 12:01:48 AM (8 years ago)
Author:
djpaul
Message:

Fix PHP7 compatibility

clone is a keyword, not a function.

Fixes #7184, props venturavan2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-core-nav.php

    r10899 r10943  
    392392
    393393                if ( $children ) {
    394                     $primary_nav_items[ $key_nav ] = clone( $primary_nav );
     394                    $primary_nav_items[ $key_nav ] = clone $primary_nav;
    395395                    $primary_nav_items[ $key_nav ]->children = $children;
    396396                }
Note: See TracChangeset for help on using the changeset viewer.