Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/10/2012 06:50:12 AM (14 years ago)
Author:
johnjamesjacoby
Message:

See #4761:

  • More Credits changes...
  • Update contributor avatars and metadata.
  • Add update/activate redirection helpers.
  • Code improvements to updater.
File:
1 edited

Legend:

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

    r6558 r6579  
    162162
    163163/**
    164  * Redirect user to bbPress's What's New page on activation
    165  *
    166  * @since bbPress (r4389)
    167  *
    168  * @internal Used internally to redirect bbPress to the about page on activation
     164 * Redirect user to BuddyPress's What's New page on activation
     165 *
     166 * @since BuddyPress (1.7)
     167 *
     168 * @internal Used internally to redirect BuddyPress to the about page on activation
    169169 *
    170170 * @uses get_transient() To see if transient to redirect exists
     
    175175 * @uses admin_url() To get the admin URL to index.php
    176176 *
    177  * @return If no transient, or in network admin, or is bulk activation
     177 * @return If no transient, or is bulk activation
    178178 */
    179179function bp_do_activation_redirect() {
     
    187187
    188188        // Bail if activating from network, or bulk
    189         if ( is_network_admin() || isset( $_GET['activate-multi'] ) )
    190                 return;
    191 
    192         // Redirect to bbPress about page
    193         wp_safe_redirect( add_query_arg( array( 'page' => 'bp-about' ), admin_url( 'index.php' ) ) );
     189        if ( isset( $_GET['activate-multi'] ) )
     190                return;
     191
     192        // Redirect to BuddyPress about page
     193        wp_safe_redirect( add_query_arg( array( 'page' => 'bp-about' ), bp_get_admin_url( 'index.php' ) ) );
    194194}
    195195
Note: See TracChangeset for help on using the changeset viewer.