Ticket #8913: 8913.4.patch
| File 8913.4.patch, 5.6 KB (added by , 2 years ago) |
|---|
-
bp-members-notifications.php
89 89 } 90 90 91 91 // Return either an HTML link or an array, depending on the requested format. 92 if ( 'string' == $format ) {92 if ( 'string' === $format ) { 93 93 94 94 /** 95 95 * Filters the format of members notifications based on type and amount * of notifications pending. … … 240 240 <thead> 241 241 <tr> 242 242 <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> 246 246 </tr> 247 247 </thead> 248 248 -
classes/class-bp-members-admin.php
922 922 */ 923 923 if ( current_user_can( 'edit_user', $user->ID ) ) : ?> 924 924 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> 926 926 927 927 <?php endif; ?> 928 928 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> 930 930 </h2> 931 931 932 932 <?php … … 1910 1910 } 1911 1911 1912 1912 // Handle resent activation links. 1913 if ( 'do_resend' == $doaction ) {1913 if ( 'do_resend' === $doaction ) { 1914 1914 1915 1915 // Nonce check. 1916 1916 check_admin_referer( 'signups_resend' ); … … 1937 1937 bp_core_redirect( $redirect_to ); 1938 1938 1939 1939 // Handle activated accounts. 1940 } elseif ( 'do_activate' == $doaction ) {1940 } elseif ( 'do_activate' === $doaction ) { 1941 1941 1942 1942 // Nonce check. 1943 1943 check_admin_referer( 'signups_activate' ); … … 1964 1964 bp_core_redirect( $redirect_to ); 1965 1965 1966 1966 // Handle sign-ups delete. 1967 } elseif ( 'do_delete' == $doaction ) {1967 } elseif ( 'do_delete' === $doaction ) { 1968 1968 1969 1969 // Nonce check. 1970 1970 check_admin_referer( 'signups_delete' ); … … 2305 2305 ?> 2306 2306 2307 2307 <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> 2309 2309 2310 2310 <?php if ( current_user_can( 'create_users' ) ) : ?> 2311 2311 … … 2378 2378 switch ( $action ) { 2379 2379 case 'delete' : 2380 2380 $header_text = __( 'Delete Pending Accounts', 'buddypress' ); 2381 if ( 1 == count( $signup_ids ) ) {2381 if ( 1 === count( $signup_ids ) ) { 2382 2382 $helper_text = __( 'You are about to delete the following account:', 'buddypress' ); 2383 2383 } else { 2384 2384 $helper_text = __( 'You are about to delete the following accounts:', 'buddypress' ); … … 2387 2387 2388 2388 case 'activate' : 2389 2389 $header_text = __( 'Activate Pending Accounts', 'buddypress' ); 2390 if ( 1 == count( $signup_ids ) ) {2390 if ( 1 === count( $signup_ids ) ) { 2391 2391 $helper_text = __( 'You are about to activate the following account:', 'buddypress' ); 2392 2392 } else { 2393 2393 $helper_text = __( 'You are about to activate the following accounts:', 'buddypress' ); … … 2441 2441 2442 2442 // Prefetch registration field data. 2443 2443 $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() ) ) ) { 2445 2445 $field_groups = bp_xprofile_get_groups( array( 2446 2446 'exclude_fields' => 1, 2447 2447 'update_meta_cache' => false, … … 2481 2481 <li> 2482 2482 <strong><?php echo esc_html( $signup->user_login ) ?></strong> 2483 2483 2484 <?php if ( 'activate' == $action || ( 'resend'== $action && bp_get_membership_requests_required() ) ) : ?>2484 <?php if ( 'activate' === $action || ( 'resend' === $action && bp_get_membership_requests_required() ) ) : ?> 2485 2485 <table class="wp-list-table widefat fixed striped"> 2486 2486 <tbody> 2487 2487 <tr> … … 2595 2595 2596 2596 $types = bp_get_member_types( array(), 'objects' ); ?> 2597 2597 2598 <label class="screen-reader-text" for="<?php echo $id_name; ?>"><?php _e( 'Change member type to…', 'buddypress' ) ?></label>2598 <label class="screen-reader-text" for="<?php echo $id_name; ?>"><?php esc_html_e( 'Change member type to…', 'buddypress' ) ?></label> 2599 2599 <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…', 'buddypress' ) ?></option>2600 <option value=""><?php esc_html_e( 'Change member type to…', 'buddypress' ) ?></option> 2601 2601 2602 2602 <?php foreach( $types as $type ) : ?> 2603 2603 … … 2605 2605 2606 2606 <?php endforeach; ?> 2607 2607 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> 2609 2609 2610 2610 </select> 2611 2611 <?php