Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/12/2016 09:48:23 PM (8 years ago)
Author:
slaffik
Message:

Clean up BP_Core_Nav_Item.

Remove PHP 5.2 wrapper from BP_Core_Nav_Item class, as we moved to PHP 5.3. Also clean up appropriate related code comments to properly reflect this class name.

Fixes #7345.

File:
1 edited

Legend:

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

    r10745 r11290  
    33// Exit if accessed directly.
    44defined( 'ABSPATH' ) || exit;
    5 
    6 if ( class_exists( 'ArrayObject' ) ) :
    75
    86/**
     
    1614    }
    1715}
    18 
    19 else :
    20 
    21 /**
    22  * Navigation item.
    23  *
    24  * @since 2.6.0
    25  */
    26 class BP_Core_Nav_Item {
    27     public function __construct( $data ) {
    28         foreach ( $data as $key => $value ) {
    29             $this->key = $value;
    30         }
    31     }
    32 }
    33 
    34 endif;
Note: See TracChangeset for help on using the changeset viewer.