Skip to:
Content

BuddyPress.org

Ticket #8913: 8913.5.patch

File 8913.5.patch, 3.6 KB (added by viralsampat, 2 years ago)

I have checked above mentioned issue and founds few more files. I have applied its patch.

  • bp-xprofile-activity.php

     
    273273function xprofile_activity_filter_options() {
    274274        ?>
    275275
    276         <option value="updated_profile"><?php _e( 'Profile Updates', 'buddypress' ) ?></option>
     276        <option value="updated_profile"><?php esc_html_e( 'Profile Updates', 'buddypress' ) ?></option>
    277277
    278278        <?php
    279279}
  • classes/class-bp-xprofile-field-type.php

     
    430430                                                        <input type="text" name="<?php echo esc_attr( "{$type}_option[{$j}]" ); ?>" id="<?php echo esc_attr( "{$type}_option{$j}" ); ?>" value="<?php echo esc_attr( stripslashes( $options[ $i ]->name ) ); ?>" />
    431431                                                        <label for="<?php echo esc_attr( "{$type}_option{$default_name}" ); ?>">
    432432                                                                <input type="<?php echo esc_attr( $control_type ); ?>" id="<?php echo esc_attr( "{$type}_option{$default_name}" ); ?>" name="<?php echo esc_attr( "isDefault_{$type}_option{$default_name}" ); ?>" <?php checked( $options[ $i ]->is_default_option, true ); ?> value="<?php echo esc_attr( $j ); ?>" />
    433                                                                 <?php _e( 'Default Value', 'buddypress' ); ?>
     433                                                                <?php esc_attr_e( 'Default Value', 'buddypress' ); ?>
    434434                                                        </label>
    435435
    436436                                                        <?php if ( 1 !== $j ) : ?>
  • classes/class-bp-xprofile-field.php

     
    15731573                ?>
    15741574
    15751575                <div id="field-type-member-types" class="postbox">
    1576                         <h2><?php _e( 'Member Types', 'buddypress' ); ?></h2>
     1576                        <h2><?php esc_attr_e( 'Member Types', 'buddypress' ); ?></h2>
    15771577                        <div class="inside">
    1578                                 <p class="description"><?php _e( 'This field should be available to:', 'buddypress' ); ?></p>
     1578                                <p class="description"><?php esc_attr_e( 'This field should be available to:', 'buddypress' ); ?></p>
    15791579
    15801580                                <ul>
    15811581                                        <?php foreach ( $member_types as $member_type ) : ?>
     
    15901590                                        <li>
    15911591                                                <label for="member-type-none">
    15921592                                                        <input name="member-types[]" id="member-type-none" class="member-type-selector" type="checkbox" value="null" <?php checked( in_array( 'null', $field_member_types ) ); ?>/>
    1593                                                         <?php _e( 'Users with no member type', 'buddypress' ); ?>
     1593                                                        <?php esc_attr_e( 'Users with no member type', 'buddypress' ); ?>
    15941594                                                </label>
    15951595                                        </li>
    15961596
    15971597                                </ul>
    1598                                 <p class="description member-type-none-notice<?php if ( ! empty( $field_member_types ) ) : ?> hide<?php endif; ?>"><?php _e( 'Unavailable to all members.', 'buddypress' ) ?></p>
     1598                                <p class="description member-type-none-notice<?php if ( ! empty( $field_member_types ) ) : ?> hide<?php endif; ?>"><?php esc_attr_e( 'Unavailable to all members.', 'buddypress' ) ?></p>
    15991599                        </div>
    16001600
    16011601                        <input type="hidden" name="has-member-types" value="1" />
  • classes/class-bp-xprofile-user-admin.php

     
    342342
    343343                                                <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
    344344                                                        <fieldset>
    345                                                                 <legend><?php _e( 'Who can see this field?', 'buddypress' ); ?></legend>
     345                                                                <legend><?php esc_html_e( 'Who can see this field?', 'buddypress' ); ?></legend>
    346346
    347347                                                                <?php bp_profile_visibility_radio_buttons(); ?>
    348348