Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/23/2021 02:03:02 AM (5 years ago)
Author:
espellcaste
Message:

Making PHPDoc Improvements to the BP Notifications (component) files.

See #8553

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-settings/classes/class-bp-settings-component.php

    r13090 r13091  
    9999         * @since 1.5.0
    100100         *
    101          * @param array $args Array of arguments.
     101         * @see BP_Component::setup_globals() for a description of arguments.
     102         *
     103         * @param array $args See BP_Component::setup_globals() for a description.
    102104         */
    103105        public function setup_globals( $args = array() ) {
     
    120122         * @since 1.5.0
    121123         *
    122          * @param array $main_nav Array of main nav items.
    123          * @param array $sub_nav  Array of sub nav items.
     124         * @see BP_Component::setup_nav() for a description of arguments.
     125         *
     126         * @param array $main_nav Optional. See BP_Component::setup_nav() for
     127         *                        description.
     128         * @param array $sub_nav  Optional. See BP_Component::setup_nav() for
     129         *                        description.
    124130         */
    125131        public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
     
    145151                        'show_for_displayed_user' => $access,
    146152                        'screen_function'         => 'bp_settings_screen_general',
    147                         'default_subnav_slug'     => 'general'
     153                        'default_subnav_slug'     => 'general',
    148154                );
    149155
     
    156162                        'screen_function' => 'bp_settings_screen_general',
    157163                        'position'        => 10,
    158                         'user_has_access' => $access
     164                        'user_has_access' => $access,
    159165                );
    160166
     
    168174                        'screen_function' => 'bp_settings_screen_notification',
    169175                        'position'        => 20,
    170                         'user_has_access' => $access
     176                        'user_has_access' => $access,
    171177                );
    172178
     
    180186                                'screen_function' => 'bp_settings_screen_capabilities',
    181187                                'position'        => 80,
    182                                 'user_has_access' => ! bp_is_my_profile()
     188                                'user_has_access' => ! bp_is_my_profile(),
    183189                        );
    184190                }
     
    223229
    224230        /**
    225          * Set up the Toolbar.
    226          *
    227          * @since 1.5.0
    228          *
    229          * @param array $wp_admin_nav Array of Admin Bar items.
     231         * Set up the component entries in the WordPress Admin Bar.
     232         *
     233         * @since 1.5.0
     234         *
     235         * @see BP_Component::setup_nav() for a description of the $wp_admin_nav
     236         *      parameter array.
     237         *
     238         * @param array $wp_admin_nav See BP_Component::setup_admin_bar() for a
     239         *                            description.
    230240         */
    231241        public function setup_admin_bar( $wp_admin_nav = array() ) {
     
    242252                                'id'     => 'my-account-' . $this->id,
    243253                                'title'  => __( 'Settings', 'buddypress' ),
    244                                 'href'   => $settings_link
     254                                'href'   => $settings_link,
    245255                        );
    246256
     
    251261                                'title'    => __( 'General', 'buddypress' ),
    252262                                'href'     => $settings_link,
    253                                 'position' => 10
     263                                'position' => 10,
    254264                        );
    255265
     
    261271                                        'title'    => __( 'Email', 'buddypress' ),
    262272                                        'href'     => trailingslashit( $settings_link . 'notifications' ),
    263                                         'position' => 20
     273                                        'position' => 20,
    264274                                );
    265275                        }
     
    286296                                        'title'    => __( 'Delete Account', 'buddypress' ),
    287297                                        'href'     => trailingslashit( $settings_link . 'delete-account' ),
    288                                         'position' => 90
     298                                        'position' => 90,
    289299                                );
    290300                        }
Note: See TracChangeset for help on using the changeset viewer.