Making WordPress.org


Ignore:
Timestamp:
09/10/2019 04:51:17 AM (6 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: Enqueue bb-Base styling for developer.buddypress.org.

Remove redundant styling from bbpress/buddypress specific themes.

See #4601.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php

    r8938 r9133  
    597597}
    598598add_filter( 'is_bbpress', 'bb_base_filter_is_bbpress' );
     599
     600/**
     601 * Redirect away from the login page (if you're already logged in)
     602 */
     603function bb_base_login_redirect() {
     604    if ( is_user_logged_in() && is_page( 'login' ) ) {
     605        wp_safe_redirect( bbp_get_forums_url() );
     606        exit();
     607    }
     608}
     609add_action( 'bbp_template_redirect', 'bb_base_login_redirect', 11 );
Note: See TracChangeset for help on using the changeset viewer.