[buddypress-trac] [BuddyPress Trac] #6521: Extended profile field name "Required" label produces odd HTML

buddypress-trac noreply at wordpress.org
Fri Jul 10 03:00:19 UTC 2015


#6521: Extended profile field name "Required" label produces odd HTML
----------------------------------+------------------------------
 Reporter:  dcavins               |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  lowest                |   Milestone:  Awaiting Review
Component:  Component - XProfile  |     Version:  2.3.2
 Severity:  trivial               |  Resolution:
 Keywords:                        |
----------------------------------+------------------------------
Changes (by dcavins):

 * keywords:  reporter-feedback =>


Comment:

 Replying to [comment:4 hnla]:
 >
 > Are we saying the white space in `esc_html_e( ' (required)'` is
 compacted?
 >

 No, the original php doesn't include a space in the string:
 {{{
 <?php esc_html_e( '(required)', 'buddypress' ); ?>
 }}}

 So while the two strings have a variety of other white space around them
 in line breaks and such, the result is:
 "Field Name(required)"

 So we could just add a space and stop there.

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


More information about the buddypress-trac mailing list