Skip to:
Content

BuddyPress.org

Changeset 11551


Ignore:
Timestamp:
05/16/2017 03:43:41 PM (3 years ago)
Author:
johnjamesjacoby
Message:

Groups: Use $admin_link variable in BP_Groups_Extension::setup_edit_hooks().

Prevents duplicated creation of the admin link.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-group-extension.php

    r11366 r11551  
    944944
    945945        $current_group = groups_get_current_group();
    946         $admin_link = trailingslashit( bp_get_group_permalink( $current_group ) . 'admin' );
     946        $admin_link    = trailingslashit( bp_get_group_permalink( $current_group ) . 'admin' );
    947947
    948948        $subnav_args = array(
     
    950950            'slug'            => $screen['slug'],
    951951            'parent_slug'     => $current_group->slug . '_manage',
    952             'parent_url'      => trailingslashit( bp_get_group_permalink( $current_group ) . 'admin' ),
     952            'parent_url'      => $admin_link,
    953953            'user_has_access' => bp_is_item_admin(),
    954954            'position'        => $position,
Note: See TracChangeset for help on using the changeset viewer.