Make WordPress Core

Changeset 39486 for trunk


Ignore:
Timestamp:
12/04/2016 07:23:53 PM (8 years ago)
Author:
johnbillion
Message:

Users: Clarify the return value of get_current_user_id() for non-logged-in users.

Props ovenall
Fixes #39051

File:
1 edited

Legend:

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

    r39326 r39486  
    421421 * @since MU
    422422 *
    423  * @return int The current user's ID
     423 * @return int The current user's ID, or 0 if no user is logged in.
    424424 */
    425425function get_current_user_id() {
Note: See TracChangeset for help on using the changeset viewer.