WordPress.org

Make WordPress Core

Changeset 11441


Ignore:
Timestamp:
05/23/09 21:37:49 (5 years ago)
Author:
westi
Message:

Pass references and more context to the new 'user_profile_update_errors' hook. Fixes #9302.

File:
1 edited

Legend:

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

    r11383 r11441  
    179179    } 
    180180 
    181     do_action('user_profile_update_errors', $errors); 
    182  
     181    // Allow plugins to return there own errors. 
     182    do_action_ref_array('user_profile_update_errors', array ( &$errors, $update, &$user ) );     
     183     
    183184    if ( $errors->get_error_codes() ) 
    184185        return $errors; 
Note: See TracChangeset for help on using the changeset viewer.