Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/17/2012 04:12:31 PM (8 years ago)
Author:
boonebgorges
Message:

Adds function_exists() checks for settings links.
A port of r5296 to the 1.5 branch.
Fixes #3996. See #3712. Props johnjamesjacoby

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-friends/bp-friends-notifications.php

    r4961 r5801  
    1515
    1616    $all_requests_link = bp_core_get_user_domain( $friend_id ) . bp_get_friends_slug() . '/requests/';
    17     $settings_link = bp_core_get_user_domain( $friend_id ) .  bp_get_settings_slug() . '/notifications';
    18 
    19     $initiator_link = bp_core_get_user_domain( $initiator_id );
     17    $settings_slug    = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings';
     18    $settings_link    = bp_core_get_user_domain( $friend_id ) .  $settings_slug . '/notifications';
     19    $initiator_link   = bp_core_get_user_domain( $initiator_id );
    2020
    2121    // Set up and send the message
     
    5858    $ud = get_userdata( $initiator_id );
    5959
    60     $friend_link = bp_core_get_user_domain( $friend_id );
    61     $settings_link = bp_core_get_user_domain( $initiator_id ) . bp_get_settings_slug() . '/notifications';
     60    $friend_link   = bp_core_get_user_domain( $friend_id );
     61    $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings';
     62    $settings_link = bp_core_get_user_domain( $initiator_id ) . $settings_slug . '/notifications';
    6263
    6364    // Set up and send the message
Note: See TracChangeset for help on using the changeset viewer.