WordPress.org

Make WordPress Core

Ticket #10716: 10716.diff

File 10716.diff, 418 bytes (added by jamescollins, 5 years ago)

Patch against trunk r11902

  • wp-includes/capabilities.php

     
    596596                update_usermeta( $this->ID, $this->cap_key, $this->caps ); 
    597597                $this->get_role_caps(); 
    598598                $this->update_user_level_from_caps(); 
     599                do_action('set_user_role', $this->ID, $role); 
    599600        } 
    600601 
    601602        /**