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

Props ovenall
Fixes #39051


git-svn-id: https://develop.svn.wordpress.org/trunk@39486 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
johnbillion 2016-12-04 19:23:53 +00:00
parent d69f3f4db7
commit 01a6118660
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ function count_many_users_posts( $users, $post_type = 'post', $public_only = fal
*
* @since MU
*
* @return int The current user's ID
* @return int The current user's ID, or 0 if no user is logged in.
*/
function get_current_user_id() {
if ( ! function_exists( 'wp_get_current_user' ) )