Changeset 2848094
- Timestamp:
- 01/13/2023 06:02:05 PM (19 months ago)
- Location:
- biscotti/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
biscotti/trunk/biscotti.php
r2846291 r2848094 16 16 * Plugin URI: https://github.com/boogah/biscotti 17 17 * Description: Biscotti makes your user's login cookie a little bit longer. 18 * Version: 2.0. 218 * Version: 2.0. 19 19 * Requires at least: 6.0 20 20 * Requires PHP: 7.4 … … 75 75 add_action('edit_user_profile_update', 'biscotti_login_cookie_expiration_form_fields_update'); 76 76 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 */ 84 function biscotti_login_cookie_expiration_set_auth_cookie( $expiration, $user_id, $remember ) 79 85 { 80 $user_id = $auth_cookie_data[0];81 86 $expiration_time = get_user_meta($user_id, 'biscotti_login_cookie_expiration', true); 82 87 … … 91 96 $expiration = ''; // Use default expiration of 14 days. 92 97 } 93 $auth_cookie_data[2] = $expiration;94 98 } 95 return $ auth_cookie_data;99 return $; 96 100 } 97 101 -
biscotti/trunk/readme.txt
r2846291 r2848094 1 1 === Biscotti === 2 Contributors: boogah 2 Contributors: boogah 3 3 Donate link: http://paypal.me/boogah 4 4 Tags: login, cookies, profile 5 5 Requires at least: 6.0 6 6 Tested up to: 6.1 7 Stable tag: 2.0. 27 Stable tag: 2.0. 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 32 32 == Changelog == 33 33 34 35 36 37 34 38 = 2.0.2 = 35 39
Note: See TracChangeset
for help on using the changeset viewer.