Skip to content

Commit e6416a7

Browse files
docs: add missing null to _wp_get_current_user() return type
Co-authored-by: Mukesh Panchal <mukeshpanchal27@users.noreply.github.com>
1 parent 09c94f9 commit e6416a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3708,7 +3708,7 @@ function wp_get_users_with_no_role( $site_id = null ) {
37083708
* @see wp_get_current_user()
37093709
* @global WP_User $current_user Checks if the current user is set.
37103710
*
3711-
* @return WP_User Current WP_User instance.
3711+
* @return WP_User|null Current WP_User instance if user is logged in, null otherwise.
37123712
*/
37133713
function _wp_get_current_user() {
37143714
global $current_user;

0 commit comments

Comments
 (0)