Skip to:
Content

BuddyPress.org

Changeset 9327


Ignore:
Timestamp:
01/09/2015 02:52:07 PM (5 years ago)
Author:
boonebgorges
Message:

Explicitly declare block_self=false for group and blog create buttons.

The block_self parameter, which defaults to true, is designed to prevent things
like 'Add Friend' buttons appearing when viewing oneself in a member loop. In
the case of group and blog create buttons, the parameter is not really
meaningful. But in certain cases of global variable population (such as when
a members loop is run on the page before the group/blog buttons are generated),
block_self=true can cause these buttons to be improperly suppressed.

See #5170 for background on the problem.

Fixes #6096.
Props hnla.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-template.php

    r9308 r9327  
    14721472            'link_href'  => trailingslashit( bp_get_root_domain() ) . trailingslashit( bp_get_blogs_root_slug() ) . trailingslashit( 'create' ),
    14731473            'wrapper'    => false,
     1474            'block_self' => false,
    14741475        );
    14751476
  • trunk/src/bp-groups/bp-groups-template.php

    r9315 r9327  
    28702870            'link_href'  => trailingslashit( bp_get_root_domain() ) . trailingslashit( bp_get_groups_root_slug() ) . trailingslashit( 'create' ),
    28712871            'wrapper'    => false,
     2872            'block_self' => false,
    28722873        );
    28732874
Note: See TracChangeset for help on using the changeset viewer.