Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/03/2016 08:27:12 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Navigation: Update phpdoc paramters for delete_nav().

Also make $slug parameter optional to piggy-back the empty( $slug ) check.

See #5103.

File:
1 edited

Legend:

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

    r10745 r10873  
    211211     * @since 2.6.0
    212212     *
    213      * @param string $key     The slug of the main item.
    214      * @param string $sub_key The slug of the sub item.
     213     * @param string $slug        The slug of the main item.
     214     * @param string $parent_slug The slug of the sub item.
    215215     * @return bool|callable|array False on failure, the screen function(s) on success.
    216216     */
    217     public function delete_nav( $slug, $parent_slug = '' ) {
     217    public function delete_nav( $slug = '', $parent_slug = '' ) {
     218
     219        // Bail if slug is empty
    218220        if ( empty( $slug ) ) {
    219221            return false;
Note: See TracChangeset for help on using the changeset viewer.