Make WordPress Core

Ticket #35568: 35568.diff

File 35568.diff, 3.0 KB (added by kjbenk, 7 years ago)

Here is patch I created for this ticket. This is my first patch...ever so please bare with me :)

  • wp-includes/pluggable.php

    diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php
    index 5227262..df9de78 100644
    a b if ( !function_exists('wp_generate_auth_cookie') ) : 
    736736 * @since 2.5.0
    737737 *
    738738 * @param int    $user_id    User ID
    739  * @param int    $expiration Cookie expiration in seconds
     739 * @param int    $expiration Cookie expiration as a UNIX timestamp
    740740 * @param string $scheme     Optional. The cookie scheme to use: auth, secure_auth, or logged_in
    741741 * @param string $token      User's session token to use for this cookie
    742742 * @return string Authentication cookie contents. Empty string if user does not exist.
    function wp_generate_auth_cookie( $user_id, $expiration, $scheme = 'auth', $toke 
    769769         *
    770770         * @param string $cookie     Authentication cookie.
    771771         * @param int    $user_id    User ID.
    772          * @param int    $expiration Authentication cookie expiration in seconds.
     772         * @param int    $expiration Authentication cookie expiration as a UNIX timestamp.
    773773         * @param string $scheme     Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'.
    774774         * @param string $token      User's session token used.
    775775         */
    function wp_set_auth_cookie( $user_id, $remember = false, $secure = '', $token = 
    916916         * @since 2.5.0
    917917         *
    918918         * @param string $auth_cookie Authentication cookie.
    919          * @param int    $expire      Login grace period in seconds. Default 43,200 seconds, or 12 hours.
    920          * @param int    $expiration  Duration in seconds the authentication cookie should be valid.
    921          *                            Default 1,209,600 seconds, or 14 days.
     919         * @param int    $expire      Login grace period as a UNIX timestamp for when it will expire.
     920         *                                                        Use 0 for no grace period.
     921         * @param int    $expiration  UNIX timestamp for when the authentication cookie should be valid until.
     922         *                            Default 1,209,600 seconds from now, or 14 days from now.
    922923         * @param int    $user_id     User ID.
    923924         * @param string $scheme      Authentication scheme. Values include 'auth', 'secure_auth', or 'logged_in'.
    924925         */
    function wp_set_auth_cookie( $user_id, $remember = false, $secure = '', $token = 
    930931         * @since 2.6.0
    931932         *
    932933         * @param string $logged_in_cookie The logged-in cookie.
    933          * @param int    $expire           Login grace period in seconds. Default 43,200 seconds, or 12 hours.
    934          * @param int    $expiration       Duration in seconds the authentication cookie should be valid.
    935          *                                 Default 1,209,600 seconds, or 14 days.
     934         * @param int    $expire           Login grace period as a UNIX timestamp for when it will expire.
     935         *                                                             Use 0 for no grace period.
     936         * @param int    $expiration       UNIX timestamp for when the authentication cookie should be valid until.
     937         *                                 Default 1,209,600 seconds from now, or 14 days from now.
    936938         * @param int    $user_id          User ID.
    937939         * @param string $scheme           Authentication scheme. Default 'logged_in'.
    938940         */