Changeset 2632
- Timestamp:
- 02/08/2010 03:26:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-adminbar.php
r2621 r2632 10 10 return false; 11 11 12 $bp->doing_admin_bar = true; 13 12 14 echo '<div id="wp-admin-bar"><div class="padder">'; 13 15 … … 22 24 echo '</ul>'; 23 25 echo "</div></div><!-- #wp-admin-bar -->\n\n"; 26 27 $bp->doing_admin_bar = false; 24 28 } 25 29 … … 72 76 73 77 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'] ); 74 80 $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>'; 76 82 $sub_counter++; 77 83 }
Note: See TracChangeset
for help on using the changeset viewer.