Skip to:
Content

BuddyPress.org

Changeset 5151


Ignore:
Timestamp:
09/16/2011 05:38:18 PM (13 years ago)
Author:
djpaul
Message:

Standardise missing page/component link nag warnings.
Also fix nag not appearing for the activation/registration pages.
Fixes #3580

Location:
trunk/bp-core
Files:
2 edited

Legend:

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

    r5073 r5151  
    571571    // Static pages
    572572    $static_pages = array(
    573         'register' => __( 'Sign-up',    'buddypress' ),
    574         'activate' => __( 'Activation', 'buddypress' ),
     573        'register' => __( 'Register', 'buddypress' ),
     574        'activate' => __( 'Activate', 'buddypress' ),
    575575    ); ?>
    576576
  • trunk/bp-core/bp-core-functions.php

    r5094 r5151  
    402402    // Activate and Register are special cases. They are not components but they need WP pages.
    403403    // If user registration is disabled, we can skip this step.
    404     if ( isset( $bp->site_options['registration'] ) && ( 'user' == $bp->site_options['registration'] || ( 'all' == $bp->site_options['registration'] ) ) ) {
     404    if ( bp_get_signup_allowed() ) {
    405405        $wp_page_components[] = array(
    406406            'id'   => 'activate',
Note: See TracChangeset for help on using the changeset viewer.