[buddypress-trac] [BuddyPress Trac] #6549: xprofile field type for phone number

buddypress-trac noreply at wordpress.org
Mon Feb 5 17:58:58 UTC 2018


#6549: xprofile field type for phone number
------------------------------+-----------------------
 Reporter:  danbp             |       Owner:  DJPaul
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  3.0
Component:  Extended Profile  |     Version:  2.3.2
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+-----------------------

Comment (by DJPaul):

 > What is the purpose of the -1

 No idea about the `-1` thing, I assume it's from the original profile
 field implementation pre-2.0. It's used in all other field types. It looks
 like the assumption made was that `bp_the_profile_field_input_name()`
 would be unique. If I introduced this in 2.0, I would need to go look at
 the commits logs and hope I left a clue. You also see `-3` used for select
 boxes, etc.

 > concatenating regex

 Good tip, I'll check that out!


 > stricter validation

 We do have similar logic for, I think, date fields? We copied WP's logic
 from Settings > Reading? We could? I'm not against implementation
 something similar, though the default'll have to be (anything), and we
 could pick a handful of countries' phone number formats?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6549#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list