Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2024 06:50:42 PM (2 years ago)
Author:
imath
Message:

BP Legacy: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php

    r12595 r13822  
    2828                        <?php
    2929                        /* translators: %s: profile group name */
    30                         printf( __( "Editing '%s' Profile Group", 'buddypress' ), bp_get_the_profile_group_name() );
     30                        printf( esc_html__( "Editing '%s' Profile Group", 'buddypress' ), esc_html( bp_get_the_profile_group_name() ) );
    3131                        ?>
    3232                </h2>
     
    6363                                                <?php
    6464                                                printf(
    65                                                         __( 'This field can be seen by: %s', 'buddypress' ),
    66                                                         '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
     65                                                        esc_html__( 'This field can be seen by: %s', 'buddypress' ),
     66                                                        '<span class="current-visibility-level">' . esc_html( bp_get_the_profile_field_visibility_level_label() ) . '</span>'
    6767                                                );
    6868                                                ?>
    6969                                                </span>
    70                                                 <button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button>
     70                                                <button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php echo esc_html_x( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button>
    7171                                        </p>
    7272
    7373                                        <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
    7474                                                <fieldset>
    75                                                         <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
     75                                                        <legend><?php esc_html_e( 'Who can see this field?', 'buddypress' ) ?></legend>
    7676
    7777                                                        <?php bp_profile_visibility_radio_buttons() ?>
    7878
    7979                                                </fieldset>
    80                                                 <button type="button" class="field-visibility-settings-close"><?php _e( 'Close', 'buddypress' ) ?></button>
     80                                                <button type="button" class="field-visibility-settings-close"><?php esc_html_e( 'Close', 'buddypress' ) ?></button>
    8181                                        </div>
    8282                                <?php else : ?>
     
    8484                                                <?php
    8585                                                printf(
    86                                                         __( 'This field can be seen by: %s', 'buddypress' ),
    87                                                         '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
     86                                                        esc_html__( 'This field can be seen by: %s', 'buddypress' ),
     87                                                        '<span class="current-visibility-level">' . esc_html( bp_get_the_profile_field_visibility_level_label() ) . '</span>'
    8888                                                );
    8989                                                ?>
Note: See TracChangeset for help on using the changeset viewer.