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

WordPress Trac noreply at wordpress.org
Tue Feb 23 22:25:34 UTC 2016


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

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36651"]:
 {{{
 #!CommitTicketReference repository="" revision="36651"
 Users: Introduce `_wp_get_current_user()` for improved backward
 compatibility.

 This new helper function is used by the pluggable functions
 `wp_get_current_user()` and `get_currentuserinfo()`, which was previously
 being called by the former before [36311]. Without it, infinite loops
 could be caused when plugins implement these functions, as they are now
 called the other way around.

 Fixes #19615.
 }}}

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


More information about the wp-trac mailing list