Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 02:49:16 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Replace all remaining $bp global touches with buddypress().

All existing tests continue to pass as normal. I will further manually scrutinize each replacement to ensure correctness.

Fixes #5138. Any stragglers or updates will reference this ticket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-template.php

    r9468 r9471  
    11151115 */
    11161116function bp_blog_signup_enabled() {
    1117     global $bp;
    1118 
    1119     $active_signup = isset( $bp->site_options['registration'] ) ? $bp->site_options['registration'] : 'all';
     1117    $bp = buddypress();
     1118
     1119    $active_signup = isset( $bp->site_options['registration'] )
     1120        ? $bp->site_options['registration']
     1121        : 'all';
    11201122
    11211123    /**
Note: See TracChangeset for help on using the changeset viewer.