Plugin Directory

Changeset 3012985


Ignore:
Timestamp:
12/21/2023 01:58:51 PM (2 years ago)
Author:
axeptio
Message:

version 2.3.3 release

Location:
axeptio-sdk-integration
Files:
795 added
3 edited

Legend:

Unmodified
Added
Removed
  • axeptio-sdk-integration/trunk/axeptio-wordpress-plugin.php

    r3008537 r3012985  
    44    Plugin URI: https://www.axeptio.eu/
    55    Description: Axeptio allows you to make your website compliant with GDPR.
    6     Version: 2.3.1
     6    Version: 2.3.2
    77    Author: axeptio
    88    License: GPLv3
     
    1515use Axeptio\Models\Settings;
    1616
    17 define( 'XPWP_VERSION', '2.3.1' );
     17define( 'XPWP_VERSION', '2.3.2' );
    1818define( 'XPWP_URL', plugin_dir_url( __FILE__ ) );
    1919define( 'XPWP_PATH', plugin_dir_path( __FILE__ ) );
  • axeptio-sdk-integration/trunk/includes/classes/models/class-recommended-plugin-settings.php

    r3006653 r3012985  
    1010 */
    1111class Recommended_Plugin_Settings {
     12
     13    const TRANSIENT_KEY = 'axeptio/recommanded_plugin_settings';
     14
    1215    /**
    1316     * Stores the results of the fetched plugin data.
     
    5558     */
    5659    private static function fetch_plugin_datas() {
     60        $cached_plugin_datas = get_transient(self::TRANSIENT_KEY);
     61
     62        if ( $cached_plugin_datas !== false ) {
     63            return $cached_plugin_datas;
     64        }
     65
    5766        $plugin_datas = wp_remote_get( self::$service_url );
    58         if ( ! $plugin_datas ) {
     67
     68        if ( is_wp_error( $plugin_datas ) || ! isset( $plugin_datas['body'] ) ) {
    5969            return array();
    6070        }
    6171
    62         return self::process_plugin_items( json_decode( $plugin_datas['body'], true ) );
     72        $processed_plugin_datas = self::process_plugin_items( json_decode( $plugin_datas['body'], true ) );
     73
     74        set_transient( 'cached_plugin_datas', $processed_plugin_datas, 1 * DAY_IN_SECONDS );
     75
     76        return $processed_plugin_datas;
    6377    }
    6478
  • axeptio-sdk-integration/trunk/readme.txt

    r3008537 r3012985  
    44Requires at least: 5.0
    55Tested up to: 6.3.1
    6 Stable tag: 2.3.1
     6Stable tag: 2.3
    77Requires PHP: 7.4
    88License: GPLv3
     
    8585== Changelog ==
    8686
     87### 2.3.2 ###
     88
     89- Fix error when remote networking issue
     90
    8791### 2.3.1 ###
    8892
Note: See TracChangeset for help on using the changeset viewer.