Plugin Directory

Changeset 2405880


Ignore:
Timestamp:
10/24/2020 01:33:14 PM (5 years ago)
Author:
transact
Message:

ver 5.3.0: stay logged in 15 days

Location:
transact
Files:
3 edited
11 copied

Legend:

Unmodified
Added
Removed
  • transact/tags/5.3.0/frontend/controllers/transact-single-post.php

    r2402593 r2405880  
    390390                } else {
    391391                    if($cur_user->ID !== $wp_userid) {
     392                        add_filter ( 'auth_cookie_expiration', function (int $length): int {
     393                            return 60 * 60 * 24 * 15;
     394                        });
     395 
    392396                        wp_clear_auth_cookie();
    393397                        wp_set_current_user ( $wp_userid );
    394                         wp_set_auth_cookie  ( $wp_userid );
     398                        wp_set_auth_cookie  ( $wp_userid, true ); // second parameter true remembers user for 14 days.
    395399                    }
    396400                }
  • transact/tags/5.3.0/readme.txt

    r2402593 r2405880  
    66Requires PHP: 5.6
    77Tested up to: 5.5.1
    8 Stable tag: 5.2.3
     8Stable tag: 5.3.0
    99License: APACHE-2.0
    1010License URI: https://www.apache.org/licenses/LICENSE-2.0
     
    8181== Changelog ==
    8282
     83
     84= 5.3.0 =
     85* Set wordpress_logged_in to 15 days to stay signed in.
     86
    8387= 5.2.3 =
    8488* Error check for blocked scripts
  • transact/tags/5.3.0/transact-plugin.php

    r2402593 r2405880  
    33 * Plugin Name: transact.io
    44 * Description: Integrates transact.io services into WP
    5  * Version: 5.2.3
     5 * Version: 5.3.0
    66 * Author: transact.io
    77 * Author URI: https://transact.io
  • transact/trunk/frontend/controllers/transact-single-post.php

    r2402593 r2405880  
    390390                } else {
    391391                    if($cur_user->ID !== $wp_userid) {
     392                        add_filter ( 'auth_cookie_expiration', function (int $length): int {
     393                            return 60 * 60 * 24 * 15;
     394                        });
     395 
    392396                        wp_clear_auth_cookie();
    393397                        wp_set_current_user ( $wp_userid );
    394                         wp_set_auth_cookie  ( $wp_userid );
     398                        wp_set_auth_cookie  ( $wp_userid, true ); // second parameter true remembers user for 14 days.
    395399                    }
    396400                }
  • transact/trunk/readme.txt

    r2402593 r2405880  
    66Requires PHP: 5.6
    77Tested up to: 5.5.1
    8 Stable tag: 5.2.3
     8Stable tag: 5.3.0
    99License: APACHE-2.0
    1010License URI: https://www.apache.org/licenses/LICENSE-2.0
     
    8181== Changelog ==
    8282
     83
     84= 5.3.0 =
     85* Set wordpress_logged_in to 15 days to stay signed in.
     86
    8387= 5.2.3 =
    8488* Error check for blocked scripts
  • transact/trunk/transact-plugin.php

    r2402593 r2405880  
    33 * Plugin Name: transact.io
    44 * Description: Integrates transact.io services into WP
    5  * Version: 5.2.3
     5 * Version: 5.3.0
    66 * Author: transact.io
    77 * Author URI: https://transact.io
Note: See TracChangeset for help on using the changeset viewer.