From e01aab85836412b667b18d719005d6721dd8ace6 Mon Sep 17 00:00:00 2001
From: Anand Kumria <akumria@acm.org>
Date: Sun, 24 Nov 2013 15:46:08 +0000
Subject: [PATCH 4/4] Return the placeholder text for a field if it exists.

---
 bp-xprofile/bp-xprofile-template.php |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bp-xprofile/bp-xprofile-template.php b/bp-xprofile/bp-xprofile-template.php
index b16f608..ab2af1a 100644
--- a/bp-xprofile/bp-xprofile-template.php
+++ b/bp-xprofile/bp-xprofile-template.php
@@ -422,7 +422,11 @@ function bp_the_profile_field_options( $args = '' ) {
 }
 
 function bp_get_placeholder_text_for_field( $field ) {
-    return /* translators: no option picked in select box */ __( '----', 'buddypress' ) ;
+    if ($field->placeholder) {
+		return $field->placeholder;
+    } else {
+		return /* translators: no option picked in select box */ __( '----', 'buddypress' ) ;
+    }
 }
 
 	/**
-- 
1.7.9.5

