WordPress.org

Make WordPress Core

Changeset 39486


Ignore:
Timestamp:
12/04/16 19:23:53 (4 months 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.