Skip to:
Content

BuddyPress.org

Ticket #8913: 8913.4.patch

File 8913.4.patch, 5.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-members-notifications.php

     
    8989        }
    9090
    9191        // Return either an HTML link or an array, depending on the requested format.
    92         if ( 'string' == $format ) {
     92        if ( 'string' === $format ) {
    9393
    9494                /**
    9595                 * Filters the format of members notifications based on type and amount * of notifications pending.
     
    240240                <thead>
    241241                        <tr>
    242242                                <th class="icon"></th>
    243                                 <th class="title"><?php _ex( 'Members', 'Member settings on notification settings page', 'buddypress' ) ?></th>
    244                                 <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>
    245                                 <th class="no"><?php _e( 'No', 'buddypress' )?></th>
     243                                <th class="title"><?php esc_html_x( 'Members', 'Member settings on notification settings page', 'buddypress' ) ?></th>
     244                                <th class="yes"><?php esc_html_e( 'Yes', 'buddypress' ) ?></th>
     245                                <th class="no"><?php esc_html_e( 'No', 'buddypress' )?></th>
    246246                        </tr>
    247247                </thead>
    248248
  • classes/class-bp-members-admin.php

     
    922922                         */
    923923                        if ( current_user_can( 'edit_user', $user->ID ) ) : ?>
    924924
    925                                 <a class="nav-tab<?php echo esc_attr( $wp_active ); ?>" href="<?php echo esc_url( $wordpress_url );?>"><?php _e( 'Profile', 'buddypress' ); ?></a>
     925                                <a class="nav-tab<?php echo esc_attr( $wp_active ); ?>" href="<?php echo esc_url( $wordpress_url );?>"><?php esc_html_e( 'Profile', 'buddypress' ); ?></a>
    926926
    927927                        <?php endif; ?>
    928928
    929                         <a class="nav-tab<?php echo esc_attr( $bp_active ); ?>" href="<?php echo esc_url( $community_url );?>"><?php _e( 'Extended Profile', 'buddypress' ); ?></a>
     929                        <a class="nav-tab<?php echo esc_attr( $bp_active ); ?>" href="<?php echo esc_url( $community_url );?>"><?php esc_html_e( 'Extended Profile', 'buddypress' ); ?></a>
    930930                </h2>
    931931
    932932                <?php
     
    19101910                        }
    19111911
    19121912                        // Handle resent activation links.
    1913                         if ( 'do_resend' == $doaction ) {
     1913                        if ( 'do_resend' === $doaction ) {
    19141914
    19151915                                // Nonce check.
    19161916                                check_admin_referer( 'signups_resend' );
     
    19371937                                bp_core_redirect( $redirect_to );
    19381938
    19391939                        // Handle activated accounts.
    1940                         } elseif ( 'do_activate' == $doaction ) {
     1940                        } elseif ( 'do_activate' === $doaction ) {
    19411941
    19421942                                // Nonce check.
    19431943                                check_admin_referer( 'signups_activate' );
     
    19641964                                bp_core_redirect( $redirect_to );
    19651965
    19661966                        // Handle sign-ups delete.
    1967                         } elseif ( 'do_delete' == $doaction ) {
     1967                        } elseif ( 'do_delete' === $doaction ) {
    19681968
    19691969                                // Nonce check.
    19701970                                check_admin_referer( 'signups_delete' );
     
    23052305                ?>
    23062306
    23072307                <div class="wrap">
    2308                         <h1 class="wp-heading-inline"><?php _e( 'Users', 'buddypress' ); ?></h1>
     2308                        <h1 class="wp-heading-inline"><?php esc_html_e( 'Users', 'buddypress' ); ?></h1>
    23092309
    23102310                        <?php if ( current_user_can( 'create_users' ) ) : ?>
    23112311
     
    23782378                switch ( $action ) {
    23792379                        case 'delete' :
    23802380                                $header_text = __( 'Delete Pending Accounts', 'buddypress' );
    2381                                 if ( 1 == count( $signup_ids ) ) {
     2381                                if ( 1 === count( $signup_ids ) ) {
    23822382                                        $helper_text = __( 'You are about to delete the following account:', 'buddypress' );
    23832383                                } else {
    23842384                                        $helper_text = __( 'You are about to delete the following accounts:', 'buddypress' );
     
    23872387
    23882388                        case 'activate' :
    23892389                                $header_text = __( 'Activate Pending Accounts', 'buddypress' );
    2390                                 if ( 1 == count( $signup_ids ) ) {
     2390                                if ( 1 === count( $signup_ids ) ) {
    23912391                                        $helper_text = __( 'You are about to activate the following account:', 'buddypress' );
    23922392                                } else {
    23932393                                        $helper_text = __( 'You are about to activate the following accounts:', 'buddypress' );
     
    24412441
    24422442                // Prefetch registration field data.
    24432443                $fdata = array();
    2444                 if ( bp_is_active( 'xprofile' ) && ( 'activate' == $action || ( 'resend' == $action && bp_get_membership_requests_required() ) ) ) {
     2444                if ( bp_is_active( 'xprofile' ) && ( 'activate' === $action || ( 'resend' === $action && bp_get_membership_requests_required() ) ) ) {
    24452445                        $field_groups = bp_xprofile_get_groups( array(
    24462446                                'exclude_fields'    => 1,
    24472447                                'update_meta_cache' => false,
     
    24812481                                <li>
    24822482                                        <strong><?php echo esc_html( $signup->user_login ) ?></strong>
    24832483
    2484                                         <?php if ( 'activate' == $action || ( 'resend' == $action && bp_get_membership_requests_required() ) ) : ?>
     2484                                        <?php if ( 'activate' === $action || ( 'resend' === $action && bp_get_membership_requests_required() ) ) : ?>
    24852485                                                <table class="wp-list-table widefat fixed striped">
    24862486                                                        <tbody>
    24872487                                                                <tr>
     
    25952595
    25962596                $types = bp_get_member_types( array(), 'objects' ); ?>
    25972597
    2598                 <label class="screen-reader-text" for="<?php echo $id_name; ?>"><?php _e( 'Change member type to&hellip;', 'buddypress' ) ?></label>
     2598                <label class="screen-reader-text" for="<?php echo $id_name; ?>"><?php esc_html_e( 'Change member type to&hellip;', 'buddypress' ) ?></label>
    25992599                <select name="<?php echo $id_name; ?>" id="<?php echo $id_name; ?>" style="display:inline-block;float:none;">
    2600                         <option value=""><?php _e( 'Change member type to&hellip;', 'buddypress' ) ?></option>
     2600                        <option value=""><?php esc_html_e( 'Change member type to&hellip;', 'buddypress' ) ?></option>
    26012601
    26022602                        <?php foreach( $types as $type ) : ?>
    26032603
     
    26052605
    26062606                        <?php endforeach; ?>
    26072607
    2608                         <option value="remove_member_type"><?php _e( 'No Member Type', 'buddypress' ) ?></option>
     2608                        <option value="remove_member_type"><?php esc_html_e( 'No Member Type', 'buddypress' ) ?></option>
    26092609
    26102610                </select>
    26112611                <?php