WordPress.org

Make WordPress Core

Ticket #36341: 36341.diff

File 36341.diff, 625 bytes (added by DrewAPicture, 6 years ago)
  • src/wp-includes/user.php

     
    414414//
    415415
    416416/**
    417  * Get the current user's ID
     417 * Retrieves the current user's ID.
    418418 *
     419 * Should be used only after the {@see 'init'} action has fired, as the current user
     420 * is not set before that point in the loading order.
     421 *
    419422 * @since MU
    420423 *
    421  * @return int The current user's ID
     424 * @return int The current user's ID.
    422425 */
    423426function get_current_user_id() {
    424427        if ( ! function_exists( 'wp_get_current_user' ) )