[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 14:15:15 UTC 2021


#53088: Docs: Add @global current_user to the get_user_by docblock
----------------------------------------+-----------------------
 Reporter:  mukesh27                    |       Owner:  mukesh27
     Type:  enhancement                 |      Status:  assigned
 Priority:  normal                      |   Milestone:  5.8
Component:  Users                       |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+-----------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review => 5.8


Old description:

> 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.

New description:

 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.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53088#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list