Skip to:
Content

BuddyPress.org

Changeset 2632


Ignore:
Timestamp:
02/08/2010 03:26:24 PM (15 years ago)
Author:
apeatling
Message:

Fix for #1849 - will need to be properly addressed in 1.3.

File:
1 edited

Legend:

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

    r2621 r2632  
    1010        return false;
    1111
     12    $bp->doing_admin_bar = true;
     13
    1214    echo '<div id="wp-admin-bar"><div class="padder">';
    1315
     
    2224    echo '</ul>';
    2325    echo "</div></div><!-- #wp-admin-bar -->\n\n";
     26
     27    $bp->doing_admin_bar = false;
    2428}
    2529
     
    7276
    7377            foreach( (array)$bp->bp_options_nav[$nav_item['slug']] as $subnav_item ) {
     78                $link = str_replace( $bp->displayed_user->domain, $bp->loggedin_user->domain, $subnav_item['link'] );
     79                $name = str_replace( $bp->displayed_user->userdata->user_login, $bp->loggedin_user->userdata->user_login, $subnav_item['name'] );
    7480                $alt = ( 0 == $sub_counter % 2 ) ? ' class="alt"' : '';
    75                 echo '<li' . $alt . '><a id="bp-admin-' . $subnav_item['css_id'] . '" href="' . $subnav_item['link'] . '">' . $subnav_item['name'] . '</a></li>';
     81                echo '<li' . $alt . '><a id="bp-admin-' . $subnav_item['css_id'] . '" href="' . $link . '">' . $name . '</a></li>';
    7682                $sub_counter++;
    7783            }
Note: See TracChangeset for help on using the changeset viewer.