Changeset 11290
- Timestamp:
- 12/12/2016 09:48:23 PM (8 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-buddybar.php
r11032 r11290 91 91 * 92 92 * @since 2.4.0 93 * @since 2.6.0 Introduced the `$component` parameter. Began returning a BP_ Nav_Item object on success.93 * @since 2.6.0 Introduced the `$component` parameter. Began returning a BP_Core_Nav_Item object on success. 94 94 * 95 95 * @param array|string $args { … … 109 109 * } 110 110 * @param string $component Optional. Component that the nav belongs to. 111 * @return bool|BP_ Nav_Item Returns false on failure, new nav item on success.111 * @return bool|BP_Core_Nav_Item Returns false on failure, new nav item on success. 112 112 */ 113 113 function bp_core_create_nav_link( $args = '', $component = 'members' ) { … … 447 447 * 448 448 * @since 2.4.0 449 * @since 2.6.0 Introduced the `$component` parameter. Began returning a BP_ Nav_Item object on success.449 * @since 2.6.0 Introduced the `$component` parameter. Began returning a BP_Core_Nav_Item object on success. 450 450 * 451 451 * @param array|string $args { … … 476 476 * } 477 477 * @param string $component The component the navigation is attached to. Defaults to 'members'. 478 * @return bool|object Returns false on failure, new BP_ Nav_Item instance on success.478 * @return bool|object Returns false on failure, new BP_Core_Nav_Item instance on success. 479 479 */ 480 480 function bp_core_create_subnav_link( $args = '', $component = 'members' ) { -
trunk/src/bp-core/classes/class-bp-core-nav-item.php
r10745 r11290 3 3 // Exit if accessed directly. 4 4 defined( 'ABSPATH' ) || exit; 5 6 if ( class_exists( 'ArrayObject' ) ) :7 5 8 6 /** … … 16 14 } 17 15 } 18 19 else :20 21 /**22 * Navigation item.23 *24 * @since 2.6.025 */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.