Plugin Directory

Changeset 2653781


Ignore:
Timestamp:
01/06/2022 09:23:25 PM (4 years ago)
Author:
transact
Message:

fix return value type declaration, not supported on PHP 7.2, or PHP older than 7.4

Location:
transact
Files:
3 edited
12 copied

Legend:

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

    r2592925 r2653781  
    373373                } else {
    374374                    if($cur_user->ID !== $wp_userid) {
    375                         add_filter ( 'auth_cookie_expiration', function (int $length): int {
    376                             return 60 * 60 * 24 * 15;
    377                         });
     375                        add_filter ( 'auth_cookie_expiration',  array( $this, 'get_cookie_expire_callback' ));
    378376
    379377                        wp_clear_auth_cookie();
     
    684682    }
    685683
     684    public function get_cookie_expire_callback($length) {
     685        // 15 days
     686        return 60 * 60 * 24 * 15;
     687    }
     688
    686689    public function init_search_crawler() {
    687690
     
    691694
    692695        $wp_userid = $accountMeta->get_or_create_auto_user($username, '', 'Crawler Bot');
    693         add_filter ( 'auth_cookie_expiration', function (int $length): int {
    694             return 60 * 60 * 24 * 15;
    695         });
     696        add_filter ( 'auth_cookie_expiration',  array( $this, 'get_cookie_expire_callback' ));
    696697
    697698        wp_clear_auth_cookie();
  • transact/tags/5.6.1/readme.txt

    r2592925 r2653781  
    66Requires PHP: 5.6
    77Tested up to: 5.8
    8 Stable tag: 5.6.0
     8Stable tag: 5.6.1
    99License: APACHE-2.0
    1010License URI: https://www.apache.org/licenses/LICENSE-2.0
  • transact/tags/5.6.1/transact-plugin.php

    r2592925 r2653781  
    33 * Plugin Name: transact.io
    44 * Description: Integrates transact.io services into WP
    5  * Version: 5.6.0
     5 * Version: 5.6.1
    66 * Author: transact.io
    77 * Author URI: https://transact.io
    88 * Plugin URI: https://wordpress.org/plugins/transact/
    99 */
    10 define('TRANSACT_VERSION', '5.6.0'); // Cache busting
     10define('TRANSACT_VERSION', '5.6.1'); // Cache busting
    1111
    1212/**
  • transact/trunk/frontend/controllers/transact-single-post.php

    r2592925 r2653781  
    373373                } else {
    374374                    if($cur_user->ID !== $wp_userid) {
    375                         add_filter ( 'auth_cookie_expiration', function (int $length): int {
    376                             return 60 * 60 * 24 * 15;
    377                         });
     375                        add_filter ( 'auth_cookie_expiration',  array( $this, 'get_cookie_expire_callback' ));
    378376
    379377                        wp_clear_auth_cookie();
     
    684682    }
    685683
     684    public function get_cookie_expire_callback($length) {
     685        // 15 days
     686        return 60 * 60 * 24 * 15;
     687    }
     688
    686689    public function init_search_crawler() {
    687690
     
    691694
    692695        $wp_userid = $accountMeta->get_or_create_auto_user($username, '', 'Crawler Bot');
    693         add_filter ( 'auth_cookie_expiration', function (int $length): int {
    694             return 60 * 60 * 24 * 15;
    695         });
     696        add_filter ( 'auth_cookie_expiration',  array( $this, 'get_cookie_expire_callback' ));
    696697
    697698        wp_clear_auth_cookie();
  • transact/trunk/readme.txt

    r2592925 r2653781  
    66Requires PHP: 5.6
    77Tested up to: 5.8
    8 Stable tag: 5.6.0
     8Stable tag: 5.6.1
    99License: APACHE-2.0
    1010License URI: https://www.apache.org/licenses/LICENSE-2.0
  • transact/trunk/transact-plugin.php

    r2592925 r2653781  
    33 * Plugin Name: transact.io
    44 * Description: Integrates transact.io services into WP
    5  * Version: 5.6.0
     5 * Version: 5.6.1
    66 * Author: transact.io
    77 * Author URI: https://transact.io
    88 * Plugin URI: https://wordpress.org/plugins/transact/
    99 */
    10 define('TRANSACT_VERSION', '5.6.0'); // Cache busting
     10define('TRANSACT_VERSION', '5.6.1'); // Cache busting
    1111
    1212/**
Note: See TracChangeset for help on using the changeset viewer.