Make WordPress Core

Ticket #53088: 53088.diff

File 53088.diff, 720 bytes (added by paaggeli, 4 years ago)
  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index 0e4cbe80e1..387bfecd9c 100644
    a b if ( ! function_exists( 'get_user_by' ) ) : 
    9292         * @since 2.8.0
    9393         * @since 4.4.0 Added 'ID' as an alias of 'id' for the `$field` parameter.
    9494         * @since 5.8.0 Returns the global `$current_user` if it's the user being fetched.
     95   *
     96   * @global WP_User $current_user The current user object which holds the user data.
    9597         *
    9698         * @param string     $field The field to retrieve the user with. id | ID | slug | email | login.
    9799         * @param int|string $value A value for $field. A user ID, slug, email address, or login name.