Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/19/2012 06:52:23 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Wizard:

  • Remove theme selection; theme compat negates this.
  • Fix $bp_pages issues with wizard when using existing pages.
  • Bail early if not correct $_POST conditions rather than huge wrapping if () statements.
  • Remove find.png theme image.
  • Use buddypress() function in place of global $bp in changed files.
  • Bump DB version.
File:
1 edited

Legend:

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

    r6342 r6343  
    131131 * @since BuddyPress (1.5)
    132132 *
    133  * @global BuddyPress $bp The one true BuddyPress instance
    134133 * @uses bp_current_user_can() to check current user permissions before showing the notices
    135134 * @uses bp_is_root_blog()
    136135 */
    137136function bp_core_print_admin_notices() {
    138     global $bp;
     137    $bp = buddypress();
    139138
    140139    // Only the super admin should see messages
     
    171170 * @since BuddyPress (1.5)
    172171 *
    173  * @global BuddyPress $bp The one true BuddyPress instance
    174172 * @param string $notice The notice you are adding to the queue
    175173 */
    176174function bp_core_add_admin_notice( $notice ) {
    177     global $bp;
     175    $bp = buddypress();
    178176
    179177    if ( empty( $bp->admin->notices ) ) {
     
    197195 */
    198196function bp_core_activation_notice() {
    199     global $wp_rewrite, $wpdb, $bp;
     197    global $wp_rewrite, $wpdb;
     198
     199    $bp = buddypress();
    200200
    201201    // Only the super admin gets warnings
     
    242242
    243243    // Only components with 'has_directory' require a WP page to function
    244     foreach( $bp->loaded_components as $component_id => $is_active ) {
     244    foreach( array_keys( $bp->loaded_components ) as $component_id ) {
    245245        if ( !empty( $bp->{$component_id}->has_directory ) ) {
    246246            $wp_page_components[] = array(
     
    296296
    297297    if ( !empty( $dupes ) ) {
    298         foreach( $dupes as $dupe_component => $dupe_id ) {
     298        foreach( array_keys( $dupes ) as $dupe_component ) {
    299299            $dupe_names[] = $bp->pages->{$dupe_component}->title;
    300300        }
Note: See TracChangeset for help on using the changeset viewer.