Ticket #9795: user-edit.php.nightly.diff
| File user-edit.php.nightly.diff, 1.3 KB (added by sirzooro, 4 years ago) |
|---|
-
user-edit.php
old new 142 142 wp_die(__('You do not have permission to edit this user.')); 143 143 144 144 if ($is_profile_page) 145 do_action('personal_options_update' );145 do_action('personal_options_update', $user_id); 146 146 else 147 do_action('edit_user_profile_update' );147 do_action('edit_user_profile_update', $user_id); 148 148 149 149 $errors = edit_user($user_id); 150 150 … … 350 350 </tr> 351 351 352 352 <?php 353 $show_password_fields = apply_filters('show_password_fields', true );353 $show_password_fields = apply_filters('show_password_fields', true, $profileuser); 354 354 if ( $show_password_fields ) : 355 355 ?> 356 356 <tr id="password"> … … 368 368 369 369 <?php 370 370 if ( $is_profile_page ) { 371 do_action('show_user_profile' );371 do_action('show_user_profile', $profileuser); 372 372 } else { 373 do_action('edit_user_profile' );373 do_action('edit_user_profile', $profileuser); 374 374 } 375 375 ?> 376 376 377 <?php if (count($profileuser->caps) > count($profileuser->roles) && apply_filters('additional_capabilities_display', true )): ?>377 <?php if (count($profileuser->caps) > count($profileuser->roles) && apply_filters('additional_capabilities_display', true, $profileuser)): ?> 378 378 <br class="clear" /> 379 379 <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform"> 380 380 <tr>