Opened 10 years ago
Closed 10 years ago
#39051 closed defect (bug) (fixed)
docs for get_current_user_id(): add 0 return value if no user logged in
| Reported by: | ovenall | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.8 |
| Component: | Users | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | docs |
Description (last modified by )
The docs for get_current_user_id() do not specify that 0 is returned if no user is logged in.
Change to:
/** * Get the current user's ID * * @since MU * * @return int|0 The current user's ID. Returns 0 if no user is logged in. */
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 39486: