[wp-trac] [WordPress Trac] #19615: Deprecate get_currentuserinfo()
WordPress Trac
noreply at wordpress.org
Wed Jan 20 09:40:29 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:
-------------------------+-------------------------
Comment (by swissspidy):
Replying to [comment:14 johnbillion]:
> [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()`.
Sigh :/
What do you think of making `get_currentuserinfo()` behave as before, i.e.
being basically a duplicate of `wp_get_current_user()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19615#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list