[wp-trac] [WordPress Trac] #2956: Make delete_user action hook

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 17 14:38:24 GMT 2006


#2956: Make delete_user action hook helpful
----------------------------+-----------------------------------------------
 Reporter:  filosofo        |       Owner:  anonymous               
     Type:  defect          |      Status:  new                     
 Priority:  normal          |   Milestone:  2.1                     
Component:  Administration  |     Version:  2.1                     
 Severity:  normal          |    Keywords:  bg|has-patch delete_user
----------------------------+-----------------------------------------------
 As I brought up [http://comox.textdrive.com/pipermail/wp-hackers/2006-
 June/006513.html here], the 'delete_user' hook is poorly placed, not
 allowing you to access usermeta data before a user is deleted.  The
 attached patch moves it to a better place.

 (For example, you might want to change post_meta data associated with a
 user's meta data, but by the time of the delete_user callback, all that
 user's meta data has been deleted.)

 Matt suggested [http://comox.textdrive.com/pipermail/wp-hackers/2006-
 June/006515.html here] that before moving the 'delete_user' hook, one
 should grep the plugins repository to see if anyone is using it in a
 plugin.  I did, and only one plugin, [http://dev.wp-
 plugins.org/file/gengo/trunk/gengo/gengo.php Gengo], does, and it does in
 an apparently redundant way, as it attempts to delete usermeta files that
 have already been deleted.

 So no plugins would be harmed by moving the 'delete_user' action hook.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2956>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list