diff --git src/bp-core/classes/class-bp-admin.php src/bp-core/classes/class-bp-admin.php
index 7c957ffe5..ffa8d7b92 100644
|
|
|
class BP_Admin { |
| 761 | 761 | <?php |
| 762 | 762 | printf( |
| 763 | 763 | /* translators: 1: heart dashicons. 2: BP Credits screen url. 3: number of BuddyPress contributors to this version. */ |
| 764 | | _n( 'Built with %1$s by <a href="%2$s">%3$d volunteer</a>.', 'Built with %1$s by <a href="%2$s">%3$d volunteers</a>.', 18, 'buddypress' ), |
| | 764 | _n( 'Built with %1$s by <a href="%2$s">%3$d volunteer</a>.', 'Built with %1$s by <a href="%2$s">%3$d volunteers</a>.', 19, 'buddypress' ), |
| 765 | 765 | '<span class="dashicons dashicons-heart"></span>', |
| 766 | 766 | esc_url( bp_get_admin_url( 'admin.php?page=bp-credits' ) ), |
| 767 | | number_format_i18n( 18 ) |
| | 767 | number_format_i18n( 19 ) |
| 768 | 768 | ); |
| 769 | 769 | ?> |
| 770 | 770 | </p> |
| … |
… |
class BP_Admin { |
| 948 | 948 | <a href="https://profiles.wordpress.org/sbrajesh/">Brajesh Singh (sbrajesh)</a>, |
| 949 | 949 | <a href="https://profiles.wordpress.org/dcavins/">David Cavins (dcavins)</a>, |
| 950 | 950 | <a href="https://profiles.wordpress.org/johnjamesjacoby/">John James Jacoby (johnjamesjacoby)</a>, |
| | 951 | <a href="https://profiles.wordpress.org/leahkoerper/">leahkoerper</a>, |
| 951 | 952 | <a href="https://profiles.wordpress.org/imath/">Mathieu Viet (imath)</a>, |
| 952 | 953 | <a href="https://profiles.wordpress.org/modemlooper/">modemlooper</a>, |
| 953 | 954 | <a href="https://profiles.wordpress.org/niftythree/">Nifty (niftythree)</a>, |
diff --git src/bp-members/admin/js/admin.js src/bp-members/admin/js/admin.js
index 6876a6b62..43f100497 100644
|
|
|
|
| 2 | 2 | |
| 3 | 3 | ( function( $ ) { |
| 4 | 4 | // Profile Visibility Settings |
| 5 | | |
| 6 | 5 | $( '.visibility-toggle-link' ).on( 'click', function( event ) { |
| 7 | 6 | event.preventDefault(); |
| 8 | 7 | |
| 9 | 8 | $( this ).attr( 'aria-expanded', 'true' ).parent().hide() |
| 10 | | .siblings( '.field-visibility-settings' ).show(); |
| | 9 | .siblings( '.field-visibility-settings' ).show(); |
| 11 | 10 | } ); |
| 12 | 11 | |
| 13 | 12 | $( '.field-visibility-settings-close' ).on( 'click', function( event ) { |
| 14 | 13 | event.preventDefault(); |
| 15 | 14 | |
| 16 | | $( '.visibility-toggle-link' ).attr( 'aria-expanded', 'false' ); |
| | 15 | $( '.visibility-toggle-link' ).attr( 'aria-expanded', 'false' ); |
| 17 | 16 | |
| 18 | | var settings_div = $(this).parent(), |
| 19 | | vis_setting_text = settings_div.find( 'input:checked' ).parent().text(); |
| | 17 | var settings_div = $( this ).parent(), |
| | 18 | vis_setting_text = settings_div.find( 'input:checked' ).parent().text(); |
| 20 | 19 | |
| 21 | 20 | settings_div.hide() |
| 22 | | .siblings( '.field-visibility-settings-toggle' ) |
| 23 | | .children( '.current-visibility-level' ).text( vis_setting_text ).end() |
| 24 | | .show(); |
| | 21 | .siblings( '.field-visibility-settings-toggle' ) |
| | 22 | .find( '.current-visibility-level' ).text( vis_setting_text ).end() |
| | 23 | .show(); |
| 25 | 24 | } ); |
| 26 | 25 | |
| 27 | 26 | } )( jQuery ); |
diff --git src/bp-xprofile/classes/class-bp-xprofile-user-admin.php src/bp-xprofile/classes/class-bp-xprofile-user-admin.php
index ef71072c5..034bd666e 100644
|
|
|
class BP_XProfile_User_Admin { |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | $r = bp_parse_args( $args['args'], array( |
| 274 | | 'profile_group_id' => 0, |
| 275 | | 'user_id' => $user->ID, |
| 276 | | 'hide_field_types' => array( 'wp-textbox', 'wp-biography' ), |
| | 274 | 'profile_group_id' => 0, |
| | 275 | 'user_id' => $user->ID, |
| | 276 | 'hide_field_types' => array( 'wp-textbox', 'wp-biography' ), |
| | 277 | 'fetch_visibility_level' => bp_current_user_can( 'bp_moderate' ) || (int) $user->ID === (int) get_current_user_id(), |
| 277 | 278 | ), 'bp_xprofile_user_admin_profile_loop_args' ); |
| 278 | 279 | |
| 279 | 280 | // We really need these args. |