Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/12/2016 09:48:23 PM (7 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/bp-core-buddybar.php

    r11032 r11290  
    9191 *
    9292 * @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.
    9494 *
    9595 * @param array|string $args {
     
    109109 * }
    110110 * @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.
    112112 */
    113113function bp_core_create_nav_link( $args = '', $component = 'members' ) {
     
    447447 *
    448448 * @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.
    450450 *
    451451 * @param array|string $args {
     
    476476 * }
    477477 * @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.
    479479 */
    480480function bp_core_create_subnav_link( $args = '', $component = 'members' ) {
Note: See TracChangeset for help on using the changeset viewer.