X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..784f914b1e4b1c62d6657e86397c2e83bcee4295:/wp-includes/pluggable-deprecated.php diff --git a/wp-includes/pluggable-deprecated.php b/wp-includes/pluggable-deprecated.php index 39fcd49d..466359e9 100644 --- a/wp-includes/pluggable-deprecated.php +++ b/wp-includes/pluggable-deprecated.php @@ -35,6 +35,23 @@ function set_current_user($id, $name = '') { } endif; +if ( !function_exists('get_currentuserinfo') ) : +/** + * Populate global variables with information about the currently logged in user. + * + * @since 0.71 + * @deprecated 4.5.0 Use wp_get_current_user() + * @see wp_get_current_user() + * + * @return bool|WP_User False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise. + */ +function get_currentuserinfo() { + _deprecated_function( __FUNCTION__, '4.5', 'wp_get_current_user()' ); + + return _wp_get_current_user(); +} +endif; + if ( !function_exists('get_userdatabylogin') ) : /** * Retrieve user info by login name. @@ -188,4 +205,4 @@ if ( ! class_exists( 'wp_atom_server', false ) ) { _deprecated_function( __CLASS__ . '::' . $name, '3.5', 'the Atom Publishing Protocol plugin' ); } } -} \ No newline at end of file +}