Skip to:
Content

BuddyPress.org

Changeset 1518 for trunk/bp-groups.php


Ignore:
Timestamp:
06/05/2009 09:29:24 PM (17 years ago)
Author:
apeatling
Message:

Streamlined the multiple functions to get the user's name, and brought them under the new "bp_core_get_user_displayname" function.

Added more through commenting to the bp-core.php file.

Allowed greater customization to bp_core_action_search_site()

Added bp_get_buddypress_theme_path() and bp_get_buddypress_theme_uri() functions

Reduced priority on some core BuddyPress functions, so that other plugins can scoot in front if needed.

Added missing filters on some core functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r1515 r1518  
    299299    }
    300300}
    301 add_action( 'wp', 'groups_directory_groups_setup', 5 );
     301add_action( 'wp', 'groups_directory_groups_setup', 2 );
    302302
    303303/***** Screens **********/
     
    11051105                return apply_filters( 'bp_groups_multiple_new_membership_requests_notification', '<a href="' . $group_link . '/admin/membership-requests/" title="' . __( 'Group Membership Requests', 'buddypress' ) . '">' . sprintf( __('%d new membership requests for the group "%s"', 'buddypress' ), (int)$total_items, $group->name ) . '</a>', $group_link, $total_items, $group->name );     
    11061106            } else {
    1107                 $user_fullname = bp_core_global_user_fullname( $requesting_user_id );
     1107                $user_fullname = bp_core_get_user_displayname( $requesting_user_id );
    11081108                return apply_filters( 'bp_groups_single_new_membership_request_notification', '<a href="' . $group_link . '/admin/membership-requests/" title="' . $user_fullname .' requests group membership">' . sprintf( __('%s requests membership for the group "%s"', 'buddypress' ), $user_fullname, $group->name ) . '</a>', $group_link, $user_fullname, $group->name );
    11091109            }   
     
    22832283        $member_theme = 'bpmember';
    22842284
    2285     add_filter( 'theme_root', 'bp_core_set_member_theme_root' );
    2286     add_filter( 'theme_root_uri', 'bp_core_set_member_theme_root_uri' );
     2285    add_filter( 'theme_root', 'bp_core_filter_buddypress_theme_root' );
     2286    add_filter( 'theme_root_uri', 'bp_core_filter_buddypress_theme_root_uri' );
    22872287
    22882288    return $member_theme;
     
    23012301        $member_theme = 'bpmember';
    23022302   
    2303     add_filter( 'theme_root', 'bp_core_set_member_theme_root' );
    2304     add_filter( 'theme_root_uri', 'bp_core_set_member_theme_root_uri' );
     2303    add_filter( 'theme_root', 'bp_core_filter_buddypress_theme_root' );
     2304    add_filter( 'theme_root_uri', 'bp_core_filter_buddypress_theme_root_uri' );
    23052305   
    23062306    return $member_theme;
Note: See TracChangeset for help on using the changeset viewer.