Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/03/2012 12:33:13 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility:

  • First pass at including theme compatibility into BuddyPress.
  • Introduce dependency, theme-compatibility, template-loader files into Core component.
  • Add theme compatibility classes for components with direct template access.
  • Move actions and filters around for improved plugin dependency.
  • Remove old $bbp references.
  • Turn $bp global into byref singleton, and include methods for setting up theme compatibility. (Fixes #4470.)
  • Add is_buddypress() function to bp-core-template.php.
  • Rename incorrectly named bp_after_theme_setup sub-action.
  • See: #3741.
File:
1 edited

Legend:

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

    r6185 r6285  
    231231 * @since BuddyPress (1.6)
    232232 *
    233  * @global BuddyPress $bbp
     233 * @global BuddyPress $bp
    234234 *
    235235 * @uses is_multisite()
     
    258258    // Give the user the 'Forum Participant' role
    259259    if ( current_user_can( 'bp_masked' ) ) {
    260         global $bbp;
     260        global $bp;
    261261
    262262        // Get the default role
     
    264264
    265265        // Set the current users default role
    266         $bbp->current_user->set_role( $default_role );
     266        $bp->current_user->set_role( $default_role );
    267267    }
    268268}
     
    323323 * @uses bp_get_caps_for_role()
    324324 *
    325  * @global BuddyPress $bbp
     325 * @global BuddyPress $bp
    326326 * @return If not multisite, not global, or user is deleted/spammed
    327327 */
Note: See TracChangeset for help on using the changeset viewer.