WordPress.org

Make WordPress Core

Ticket #10430: 10430.patch

File 10430.patch, 604 bytes (added by neoxx, 6 years ago)

adds two hooks if a user's profile has been updated

  • user-edit.php

     
    8484$errors = edit_user($user_id); 
    8585 
    8686if ( !is_wp_error( $errors ) ) { 
     87        if ( IS_PROFILE_PAGE ) 
     88                do_action('personal_options_updated', $user_id); 
     89        else 
     90                do_action('edit_user_profile_updated', $user_id); 
     91 
    8792        $redirect = (IS_PROFILE_PAGE ? "profile.php?" : "user-edit.php?user_id=$user_id&"). "updated=true"; 
    8893        $redirect = add_query_arg('wp_http_referer', urlencode($wp_http_referer), $redirect); 
    8994        wp_redirect($redirect);