diff --git a/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php b/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php index 4beb869..5c9de10 100644 --- a/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php +++ b/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php @@ -30,6 +30,10 @@ function bp_dedication_create_new_dedication() { if (isset($_POST['friend_email'])) { $friend_email = $_POST['friend_email']; + if (isset($_POST['dedicate_to_name'])) { + $friend_name = $_POST['dedicate_to_name']; + } + if (isset($_POST['dedicate_to_country'])) { $friend_country = $_POST['dedicate_to_country']; } @@ -127,6 +131,7 @@ function bp_dedication_create_new_dedication() { } if (isset($friend_email) && (is_email($friend_email))) { + add_post_meta($post_id, 'ghostpool_destination_user_name', $friend_name); add_post_meta($post_id, 'ghostpool_destination_user_email', $friend_email); add_post_meta($post_id, 'ghostpool_destination_user_country', $friend_country); } diff --git a/wp-content/themes/score/dedications/single/new-dedication.php b/wp-content/themes/score/dedications/single/new-dedication.php index b787457..4e3d595 100644 --- a/wp-content/themes/score/dedications/single/new-dedication.php +++ b/wp-content/themes/score/dedications/single/new-dedication.php @@ -53,6 +53,9 @@ global $bp;