[wp-trac] [WordPress Trac] #19615: Deprecate get_currentuserinfo()
WordPress Trac
noreply at wordpress.org
Wed Jan 20 10:14:47 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 dd32):
Another option would be to do something like:
{{{
if not exists function get_currentuserinfo() return
_core_func_wp_get_current_user()
if not exists function wp_get_current_user() return
_core_func_wp_get_current_user()
function _core_func_wp_get_current_user() {
// The actual logic.
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19615#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list