Skip to:
Content

BuddyPress.org

Changeset 5461


Ignore:
Timestamp:
12/08/2011 03:15:55 AM (13 years ago)
Author:
boonebgorges
Message:

Don't use default priorities when attaching _header_action buttons, so that plugins and themes can more easily place custom navigation and action items. Fixes #3749. Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r5362 r5461  
    106106        // Friends button
    107107        if ( bp_is_active( 'friends' ) )
    108             add_action( 'bp_member_header_actions',    'bp_add_friend_button' );
     108            add_action( 'bp_member_header_actions',    'bp_add_friend_button',           5 );
    109109
    110110        // Activity button
    111111        if ( bp_is_active( 'activity' ) )
    112             add_action( 'bp_member_header_actions',    'bp_send_public_message_button' );
     112            add_action( 'bp_member_header_actions',    'bp_send_public_message_button',  20 );
    113113
    114114        // Messages button
    115115        if ( bp_is_active( 'messages' ) )
    116             add_action( 'bp_member_header_actions',    'bp_send_private_message_button' );
     116            add_action( 'bp_member_header_actions',    'bp_send_private_message_button', 20 );
    117117
    118118        // Group buttons
    119119        if ( bp_is_active( 'groups' ) ) {
    120             add_action( 'bp_group_header_actions',     'bp_group_join_button' );
    121             add_action( 'bp_group_header_actions',     'bp_group_new_topic_button' );
     120            add_action( 'bp_group_header_actions',     'bp_group_join_button',           5 );
     121            add_action( 'bp_group_header_actions',     'bp_group_new_topic_button',      20 );
    122122            add_action( 'bp_directory_groups_actions', 'bp_group_join_button' );
    123123        }
Note: See TracChangeset for help on using the changeset viewer.