Plugin Directory

Changeset 2936286


Ignore:
Timestamp:
07/10/2023 01:43:34 AM (3 years ago)
Author:
pbwebdev
Message:

Update to 1.2.0
-An updated framework with prefixed dependencies
-Handle data for unprepared pool network
-Sanitize input stake address

Location:
cardanopress-ispo/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cardanopress-ispo/trunk/cardanopress-ispo.php

    r2936282 r2936286  
    77 * Author URI:  https://cardanopress.io
    88 * Description: A CardanoPress extension for ISPO
    9  * Version:     1.1.0
     9 * Version:     1.2.0
    1010 * License:     GPL-2.0-only
    1111 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3434
    3535// Load the main plugin class
    36 require_once plugin_dir_path(CP_ISPO_FILE) . 'vendor/autoload.php';
     36require_once plugin_dir_path(CP_ISPO_FILE) . 'dependencies/vendor/autoload_packages.php';
    3737
    3838// Instantiate
  • cardanopress-ispo/trunk/readme.txt

    r2936282 r2936286  
    44Tags: cardano, blockchain, web3, metamask, nami, eternl, ada
    55Requires at least: 4.9
    6 Tested up to: 6.1.1
    7 Stable tag: 1.0.0
     6Tested up to: 6.2.2
     7Stable tag: 1.2.0
    88Requires PHP: 7.4
    99License: GPLv3
     
    134134to the plugins.
    135135
     136
     137= 1.2.0 =
     138An updated framework with prefixed dependencies
     139Handle data for unprepared pool network
     140Sanitize input stake address
     141
    136142= 1.1.0 =
    137143Official repository release (exact same version as 0.8.0)
     144
     145= 1.0.0 =
     146First stable release (exact same version as 0.7.0)
    138147
    139148= 0.8.0 =
     
    141150Provide helper methods for epoch conversion
    142151Ready for translations
    143 
    144 = 1.0.0 =
    145 First stable release (exact same version as 0.7.0)
    146152
    147153= v0.7.0 =
  • cardanopress-ispo/trunk/src/Actions.php

    r2936282 r2936286  
    148148    protected function filterStakeAddress(string $inputAddress): string
    149149    {
     150        $inputAddress = sanitize_text_field($inputAddress);
     151
    150152        if (0 === strpos($inputAddress, 'stake1') || 0 === strpos($inputAddress, 'stake_test1')) {
    151153            return $inputAddress;
  • cardanopress-ispo/trunk/src/Application.php

    r2936282 r2936286  
    8383        $data = $poolData[$network] ?? $this->poolManager::DATA_STRUCTURE;
    8484
     85        if (empty($data)) {
     86            $data = $this->poolManager::DATA_STRUCTURE;
     87        }
     88
    8589        return $data;
    8690    }
  • cardanopress-ispo/trunk/src/PoolManager.php

    r2851606 r2936286  
    1212use PBWebDev\CardanoPress\Blockfrost;
    1313use Psr\Log\LoggerInterface;
    14 use ThemePlate\Cache\CacheManager;
    15 use ThemePlate\Process\Tasks;
     14use CardanoPress\ISPO\Dependencies\ThemePlate\Cache\CacheManager;
     15use CardanoPress\ISPO\Dependencies\ThemePlate\Process\Tasks;
    1616use WP_Error;
    1717
Note: See TracChangeset for help on using the changeset viewer.