Skip to:
Content

BuddyPress.org

Changeset 4796


Ignore:
Timestamp:
07/22/2011 02:09:04 PM (10 years ago)
Author:
boonebgorges
Message:

On Pages dashboard panel, switch to BP_ROOT_BLOG if it's set to something other than the current blog. Fixes #3289

File:
1 edited

Legend:

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

    r4794 r4796  
    509509
    510510                    <td>
     511                        <?php if ( !bp_is_root_blog() )
     512                            switch_to_blog( bp_get_root_blog_id() ) ?>
     513                       
    511514                        <?php echo wp_dropdown_pages( array(
    512515                            'name'             => 'bp_pages[' . esc_attr( $name ) . ']',
     
    524527
    525528                        <?php endif; ?>
     529                       
     530                        <?php if ( !bp_is_root_blog() )
     531                            restore_current_blog() ?>
    526532
    527533                    </td>
Note: See TracChangeset for help on using the changeset viewer.