[buddypress-trac] [BuddyPress Trac] #6679: Allow bp_field_css_class() to accept more than one class name.

buddypress-trac noreply at wordpress.org
Wed Oct 21 21:18:33 UTC 2015


#6679: Allow bp_field_css_class() to accept more than one class name.
----------------------------------+------------------------------
 Reporter:  dcavins               |       Owner:
     Type:  enhancement           |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Component - XProfile  |     Version:  2.3.3
 Severity:  normal                |  Resolution:
 Keywords:  has-patch             |
----------------------------------+------------------------------

Comment (by sbrajesh):

 Adding support for comma separated string is meaningless in the context of
 css classes.
 Here is how WordPress does it for post_class
 https://github.com/WordPress/WordPress/blob/master/wp-includes/post-
 template.php#L427

 space should be considered as the separator for multiple class and not the
 comma.

 Also, passing the class to esc_attr will be a good idea.

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


More information about the buddypress-trac mailing list