~canonical-sysadmins/wordpress/5.1

« back to all changes in this revision

Viewing changes to wp-includes/pluggable-deprecated.php

  • Committer: Nick Moffitt
  • Date: 2016-04-14 10:43:32 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: nick.moffitt@canonical.com-20160414104332-61kvsia27qpmjquk
new upstream release 4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
}
36
36
endif;
37
37
 
 
38
if ( !function_exists('get_currentuserinfo') ) :
 
39
/**
 
40
 * Populate global variables with information about the currently logged in user.
 
41
 *
 
42
 * @since 0.71
 
43
 * @deprecated 4.5.0 Use wp_get_current_user()
 
44
 * @see wp_get_current_user()
 
45
 *
 
46
 * @return bool|WP_User False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise.
 
47
 */
 
48
function get_currentuserinfo() {
 
49
        _deprecated_function( __FUNCTION__, '4.5', 'wp_get_current_user()' );
 
50
 
 
51
        return _wp_get_current_user();
 
52
}
 
53
endif;
 
54
 
38
55
if ( !function_exists('get_userdatabylogin') ) :
39
56
/**
40
57
 * Retrieve user info by login name.
188
205
                        _deprecated_function( __CLASS__ . '::' . $name, '3.5', 'the Atom Publishing Protocol plugin' );
189
206
                }
190
207
        }
191
 
}
 
 
b'\\ No newline at end of file'
 
208
}