Changeset 13017
- Timestamp:
- 07/15/2021 07:08:36 PM (4 years ago)
- Location:
- trunk/src
- Files:
- 3 edited
- bp-core/classes/class-bp-admin.php (modified) (2 diffs)
- bp-members/admin/js/admin.js (modified) (2 diffs)
- bp-xprofile/classes/class-bp-xprofile-user-admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
trunk/src/bp-core/classes/class-bp-admin.php
r13015 r13017 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>.', 1 8, '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( 1 8)767 number_format_i18n( 19 ) 768 768 ); 769 769 ?> … … 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>, trunk/src/bp-members/admin/js/admin.js
r11620 r13017 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 … … 14 13 event.preventDefault(); 15 14 16 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 trunk/src/bp-xprofile/classes/class-bp-xprofile-user-admin.php
r12869 r13017 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
Note: See TracChangeset for help on using the changeset viewer.