Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/15/2015 06:56:24 PM (11 years ago)
Author:
tw2113
Message:

More documentation cleanup for part of BP-Core component.

See #6398.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-actions.php

    r10108 r10354  
    3535 * near the bottom of this file.
    3636 *
    37  *           v--WordPress Actions       v--BuddyPress Sub-actions
     37 *          v--WordPress Actions       v--BuddyPress Sub-actions
    3838 */
    3939add_action( 'admin_menu',              'bp_admin_menu'                    );
     
    4747add_action( 'wpmu_new_blog',           'bp_new_site',               10, 6 );
    4848
    49 // Hook on to admin_init
     49// Hook on to admin_init.
    5050add_action( 'bp_admin_init', 'bp_setup_updater',          1000 );
    5151add_action( 'bp_admin_init', 'bp_core_activation_notice', 1010 );
     
    5555add_action( 'bp_admin_init', 'bp_do_activation_redirect', 1    );
    5656
    57 // Add a new separator
     57// Add a new separator.
    5858add_action( 'bp_admin_menu', 'bp_admin_separator' );
    5959
     
    6464 * @since 1.7.0
    6565 *
    66  * @param int    $blog_id
    67  * @param int    $user_id
    68  * @param string $domain
    69  * @param string $path
    70  * @param int    $site_id
    71  * @param array  $meta
     66 * @param int    $blog_id ID of the blog being installed to.
     67 * @param int    $user_id ID of the user the install is for.
     68 * @param string $domain  Domain to use with the install.
     69 * @param string $path    Path to use with the install.
     70 * @param int    $site_id ID of the site being installed to.
     71 * @param array  $meta    Metadata to use with the site creation.
    7272 */
    7373function bp_new_site( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {
    7474
    75         // Bail if plugin is not network activated
     75        // Bail if plugin is not network activated.
    7676        if ( ! is_plugin_active_for_network( buddypress()->basename ) )
    7777                return;
    7878
    79         // Switch to the new blog
     79        // Switch to the new blog.
    8080        switch_to_blog( $blog_id );
    8181
     
    9494        do_action( 'bp_new_site', $blog_id, $user_id, $domain, $path, $site_id, $meta );
    9595
    96         // restore original blog
     96        // Restore original blog.
    9797        restore_current_blog();
    9898}
     
    104104 *
    105105 * @since 1.7.0
     106 *
    106107 * @uses do_action() Calls 'bp_admin_init'.
    107108 */
     
    120121 *
    121122 * @since 1.7.0
     123 *
    122124 * @uses do_action() Calls 'bp_admin_menu'.
    123125 */
     
    136138 *
    137139 * @since 1.7.0
     140 *
    138141 * @uses do_action() Calls 'bp_admin_head'.
    139142 */
     
    152155 *
    153156 * @since 1.7.0
     157 *
    154158 * @uses do_action() Calls 'bp_admin_notices'.
    155159 */
     
    169173 * @since 1.7.0
    170174 *
    171  * @uses do_action() Calls 'bp_admin_enqueue_scripts''.
     175 * @uses do_action() Calls 'bp_admin_enqueue_scripts'.
    172176 *
    173177 * @param string $hook_suffix The current admin page, passed to
     
    190194 *
    191195 * @since 1.7.0
     196 *
    192197 * @uses do_action() Calls 'bp_admin_notices'.
    193198 */
     
    208213 *
    209214 * @since 1.7.0
     215 *
    210216 * @uses do_action() Calls 'bp_admin_notices'.
    211217 */
     
    224230 *
    225231 * @since 1.7.0
     232 *
    226233 * @uses do_action() Calls 'bp_register_admin_settings'.
    227234 */
Note: See TracChangeset for help on using the changeset viewer.