WordPress.org

Make WordPress Core

Ticket #9795: user-edit.php.nightly.diff

File user-edit.php.nightly.diff, 1.3 KB (added by sirzooro, 9 years ago)

Patch vs nightly build

  • user-edit.php

    old new  
    142142        wp_die(__('You do not have permission to edit this user.'));
    143143
    144144if ($is_profile_page)
    145         do_action('personal_options_update');
     145        do_action('personal_options_update', $user_id);
    146146else
    147         do_action('edit_user_profile_update');
     147        do_action('edit_user_profile_update', $user_id);
    148148
    149149$errors = edit_user($user_id);
    150150
     
    350350</tr>
    351351
    352352<?php
    353 $show_password_fields = apply_filters('show_password_fields', true);
     353$show_password_fields = apply_filters('show_password_fields', true, $profileuser);
    354354if ( $show_password_fields ) :
    355355?>
    356356<tr id="password">
     
    368368
    369369<?php
    370370        if ( $is_profile_page ) {
    371                 do_action('show_user_profile');
     371                do_action('show_user_profile', $profileuser);
    372372        } else {
    373                 do_action('edit_user_profile');
     373                do_action('edit_user_profile', $profileuser);
    374374        }
    375375?>
    376376
    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)): ?>
    378378<br class="clear" />
    379379        <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
    380380                <tr>