Ticket #8913: 8913.5.patch
| File 8913.5.patch, 3.6 KB (added by , 2 years ago) |
|---|
-
bp-xprofile-activity.php
273 273 function xprofile_activity_filter_options() { 274 274 ?> 275 275 276 <option value="updated_profile"><?php _e( 'Profile Updates', 'buddypress' ) ?></option>276 <option value="updated_profile"><?php esc_html_e( 'Profile Updates', 'buddypress' ) ?></option> 277 277 278 278 <?php 279 279 } -
classes/class-bp-xprofile-field-type.php
430 430 <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 ) ); ?>" /> 431 431 <label for="<?php echo esc_attr( "{$type}_option{$default_name}" ); ?>"> 432 432 <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' ); ?> 434 434 </label> 435 435 436 436 <?php if ( 1 !== $j ) : ?> -
classes/class-bp-xprofile-field.php
1573 1573 ?> 1574 1574 1575 1575 <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> 1577 1577 <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> 1579 1579 1580 1580 <ul> 1581 1581 <?php foreach ( $member_types as $member_type ) : ?> … … 1590 1590 <li> 1591 1591 <label for="member-type-none"> 1592 1592 <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' ); ?> 1594 1594 </label> 1595 1595 </li> 1596 1596 1597 1597 </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> 1599 1599 </div> 1600 1600 1601 1601 <input type="hidden" name="has-member-types" value="1" /> -
classes/class-bp-xprofile-user-admin.php
342 342 343 343 <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> 344 344 <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> 346 346 347 347 <?php bp_profile_visibility_radio_buttons(); ?> 348 348