From 6dd1672cd6bf7d20990a76d9c0fcfb3d7a2dddad Mon Sep 17 00:00:00 2001 From: david Date: Thu, 19 Jul 2012 09:03:27 +0000 Subject: [PATCH] =?UTF-8?q?Poder=20dedicar=20una=20canci=C3=B3n=20desde=20?= =?UTF-8?q?la=20lista=20de=20miembros?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@18 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6 --- .../score/lib/buddypress/functions-buddypress.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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() ) {