[wp-trac] [WordPress Trac] #19615: Deprecate get_currentuserinfo()

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 19 20:23:29 UTC 2011

#19615: Deprecate get_currentuserinfo()
 Reporter:  scribu       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
 {{{get_currentuserinfo()}}} is a pluggable function that encourages an
 ugly pattern in theme files:

 global $userdata;

 It can easily be replaced with this:

 $current_user = wp_get_current_user();

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

More information about the wp-trac mailing list