[wp-trac] [WordPress Trac] #53088: Docs: Add @global current_user to the get_user_by docblock
WordPress Trac
noreply at wordpress.org
Mon Apr 26 04:40:09 UTC 2021
#53088: Docs: Add @global current_user to the get_user_by docblock
-------------------------+----------------------------------------
Reporter: mukesh27 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: |
-------------------------+----------------------------------------
In the recent fix of ticket #28020 with changeset
[https://core.trac.wordpress.org/changeset/50790 #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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53088>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list