Skip to:
Content

BuddyPress.org

Changeset 10269


Ignore:
Timestamp:
10/13/2015 11:16:11 PM (8 years ago)
Author:
dcavins
Message:

Remove leading space from localizable string.

Move the space to the returned string, making the
translation string less fragile.

Props SergeyBiryukov.

Fixes #6659.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-template.php

    r10248 r10269  
    13371337
    13381338        if ( bp_get_the_profile_field_is_required() ) {
    1339             $translated_string = __( ' (required)', 'buddypress' );
    1340 
    1341             $retval = '<span class="bp-required-field-label">';
     1339            $translated_string = __( '(required)', 'buddypress' );
     1340
     1341            $retval = ' <span class="bp-required-field-label">';
    13421342            $retval .= apply_filters( 'bp_get_the_profile_field_required_label', $translated_string, bp_get_the_profile_field_id() );
    13431343            $retval .= '</span>';
Note: See TracChangeset for help on using the changeset viewer.