diff --git a/wp-content/themes/score/lib/buddypress/functions-buddypress.php b/wp-content/themes/score/lib/buddypress/functions-buddypress.php index a60564a..7f06144 100644 --- a/wp-content/themes/score/lib/buddypress/functions-buddypress.php +++ b/wp-content/themes/score/lib/buddypress/functions-buddypress.php @@ -513,20 +513,22 @@ add_action('bp_init', 'check_country_field'); function bp_member_add_dedicate_a_song_button() { global $bp; global $members_template; + + $friend_id = bp_get_member_user_id(); $button = array( 'id' => 'dedicate-song', - 'component' => 'friends', + 'component' => 'dedications', 'must_be_logged_in' => true, 'block_self' => true, - 'wrapper_class' => 'friendship-button dedicate-song', - 'wrapper_id' => 'friendship-button-' . $potential_friend_id, - 'link_href' => wp_nonce_url( $bp->loggedin_user->domain . bp_get_friends_slug() . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' ), + 'wrapper_class' => 'dedicate-button dedicate-song', + 'wrapper_id' => 'dedicate-button-' . $friend_id, + 'link_href' => wp_nonce_url( $bp->loggedin_user->domain . bp_get_dedication_slug() . '/new-dedication/' . $friend_id . '/', 'dedications_new_dedication' ), 'link_text' => __( 'Dedicate a song', 'buddypress' ), 'link_title' => __( 'Dedicate a song', 'buddypress' ), - 'link_id' => 'friend-' . $potential_friend_id, + 'link_id' => 'member-' . $friend_id, 'link_rel' => 'add', - 'link_class' => 'friendship-button dedicate-song add' + 'link_class' => 'dedicate-button dedicate-song add' ); if ( !bp_is_my_profile() ) {