Skip to:
Content

BuddyPress.org

Changeset 7106


Ignore:
Timestamp:
05/25/2013 09:34:10 PM (12 years ago)
Author:
r-a-y
Message:

In BP_Group_Extension, when the edit screen's position is set, use that
position when adding the group admin tab.

See #4955.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-classes.php

    r7087 r7106  
    20262026        $screen = $this->screens['edit'];
    20272027
     2028        $position = isset( $screen['position'] ) ? (int) $screen['position'] : 10;
     2029
    20282030        // Add the tab
    20292031        // @todo BP should be using bp_core_new_subnav_item()
     
    20332035                $selected = " class=\"current\"";
    20342036            echo "<li{$selected}><a href=\"' . trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/{$group_slug}/admin/' . esc_attr( $screen['slug'] ) ) . '\">' . esc_attr( $screen['name'] ) . '</a></li>";'
    2035         ), 10, 2 );
     2037        ), $position, 2 );
    20362038
    20372039        // Catch the edit screen and forward it to the plugin template
Note: See TracChangeset for help on using the changeset viewer.