mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Users: Deprecate the get_currentuserinfo() pluggable function.
It encourages an ugly pattern like `global $userdata; get_currentuserinfo();` in plugins/themes. `wp_get_current_user()` should be used instead, e.g. `$current_user = wp_get_current_user();`. Props scribu for initial patch. Fixes #19615. git-svn-id: https://develop.svn.wordpress.org/trunk@36311 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -127,7 +127,6 @@ class Tests_Pluggable extends WP_UnitTestCase {
|
||||
// wp-includes/pluggable.php:
|
||||
'wp_set_current_user' => array( 'id', 'name' => '' ),
|
||||
'wp_get_current_user' => array(),
|
||||
'get_currentuserinfo' => array(),
|
||||
'get_userdata' => array( 'user_id' ),
|
||||
'get_user_by' => array( 'field', 'value' ),
|
||||
'cache_users' => array( 'user_ids' ),
|
||||
|
||||
Reference in New Issue
Block a user