WordPress.org

Make WordPress Core

Changeset 52208


Ignore:
Timestamp:
11/18/2021 04:02:41 PM (3 weeks ago)
Author:
audrasjb
Message:

Docs: Add missing null allowed type for the $id parameter of wp_set_current_user().

Props andy-schmidt.
See #53399.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r52205 r52208  
    2121     * @global WP_User $current_user The current user object which holds the user data.
    2222     *
    23      * @param int    $id   User ID
    24      * @param string $name User's username
    25      * @return WP_User Current user User object
     23     * @param int|null $id   User ID.
     24     * @param string   $name User's username.
     25     * @return WP_User Current user User object.
    2626     */
    2727    function wp_set_current_user( $id, $name = '' ) {
Note: See TracChangeset for help on using the changeset viewer.