Plugin Directory

Changeset 2848094

Timestamp:
01/13/2023 06:02:05 PM (19 months ago)
Author:
boogah
Message:

Version 2.0.3 of Biscotti

Location:
biscotti/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • biscotti/trunk/biscotti.php

    r2846291 r2848094  
    1616 * Plugin URI:        https://github.com/boogah/biscotti
    1717 * Description:       Biscotti makes your user's login cookie a little bit longer.
    18  * Version:           2.0.2
     18 * Version:           2.0.
    1919 * Requires at least: 6.0
    2020 * Requires PHP:      7.4
     
    7575add_action('edit_user_profile_update', 'biscotti_login_cookie_expiration_form_fields_update');
    7676
    77 // Modify the expiration of the logged in user cookie.
    78 function biscotti_login_cookie_expiration_set_auth_cookie( $auth_cookie_data )
     77/**
     78 * Modify the expiration of the logged in user cookie.
     79 * @param int $expiration
     80 * @param int $user_id
     81 * @param bool $remember
     82 * @return int
     83 */
     84function biscotti_login_cookie_expiration_set_auth_cookie( $expiration, $user_id, $remember )
    7985{
    80     $user_id = $auth_cookie_data[0];
    8186    $expiration_time = get_user_meta($user_id, 'biscotti_login_cookie_expiration', true);
    8287
     
    9196            $expiration = ''; // Use default expiration of 14 days.
    9297        }
    93         $auth_cookie_data[2] = $expiration;
    9498    }
    95     return $auth_cookie_data;
     99    return $;
    96100}
    97101
  • biscotti/trunk/readme.txt

    r2846291 r2848094  
    11=== Biscotti ===
    2 Contributors: boogah
     2Contributors: boogah
    33Donate link: http://paypal.me/boogah
    44Tags: login, cookies, profile
    55Requires at least: 6.0
    66Tested up to: 6.1
    7 Stable tag: 2.0.2
     7Stable tag: 2.0.
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    3232== Changelog ==
    3333
     34
     35
     36
     37
    3438= 2.0.2 =
    3539
Note: See TracChangeset for help on using the changeset viewer.