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

WordPress Trac noreply at wordpress.org
Mon Jan 18 02:39:01 UTC 2016


#19615: Deprecate get_currentuserinfo()
-------------------------+-------------------------
 Reporter:  scribu       |       Owner:  swissspidy
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  4.5
Component:  Users        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-------------------------
Changes (by johnbillion):

 * keywords:  has-patch commit => needs-patch
 * status:  closed => reopened
 * focuses:  docs =>
 * resolution:  fixed =>


Comment:

 [36311] is causing a fatal error on one of my sites.

 A plugin on the site defines the `wp_get_current_user()` function (as it's
 pluggable) and calls `get_currentuserinfo()` in doing so. This causes an
 infinite loop because `get_currentuserinfo()` now calls
 `wp_get_current_user()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/19615#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list