Opened 5 years ago
Closed 5 years ago
#53088 closed enhancement (fixed)
Docs: Add @global current_user to the get_user_by docblock
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.8 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Users | Keywords: | good-first-bug has-patch |
| Focuses: | docs | Cc: |
Description (last modified by )
In the recent fix of ticket #28020 with changeset [50790] it used global $current_user; but the document of that global variable missing.
We should add the below doc for global variable like.
* @global WP_User $current_user The current user object which holds the user data.
Added keyword good-first-bug so any new contributor can add a patch.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
In 50792: