Make WordPress Core

Changeset 11302


Ignore:
Timestamp:
05/12/2009 04:54:18 PM (15 years ago)
Author:
ryan
Message:

Pass user to actions. Props sirzooro. fixes #9795

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r11283 r11302  
    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);
     
    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?>
     
    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">
Note: See TracChangeset for help on using the changeset viewer.