Plugin Directory

Changeset 2707859


Ignore:
Timestamp:
04/11/2022 08:03:54 AM (4 years ago)
Author:
themesgrove
Message:

Update to version 2.6.5 from GitHub

Location:
smartpay
Files:
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smartpay/tags/2.6.5/app/Activator.php

    r2633882 r2707859  
    1010{
    1111    public $upload;
     12    /**
     13     * if any changes/updates on database
     14     * update the database version
     15     * @var $db_version
     16     */
     17    private const SMARTPAY_DB_VERSION = '2.0';
     18
    1219    public function __construct()
    1320    {
     
    137144
    138145        update_option('smartpay_settings', array_merge($smartpay_settings, $options));
     146
     147        // set the db version to option table
     148        if (is_null(get_option( 'smartpay_db_version'))){
     149            add_option('smartpay_db_version', self::SMARTPAY_DB_VERSION);
     150        } else {
     151            update_option('smartpay_db_version', self::SMARTPAY_DB_VERSION);
     152        }
     153
    139154    }
    140155
  • smartpay/tags/2.6.5/app/Updater.php

    r2703855 r2707859  
    66class Updater
    77{
    8     private const SMARTPAY_CURRENT_DB_VERSION = '1.1';
    9     private const SMARTPAY_NEW_DB_VERSION = '1.2';
    108    public function __construct()
    119    {
    12         $this->_set_smartpay_db_version();
    1310        // if needed to update/add new table or column
    1411        $this->_update_database_if_available();
     
    2421    }
    2522
    26     public function _set_smartpay_db_version()
    27     {
    28         // after adding the migration on database, should set the db version into wp options table
    29         // that will help us to compare with previous version
    30         $smartpay_db_version =get_option( 'smartpay_db_version') ?? null;
    31         if (!$smartpay_db_version){
    32             add_option('smartpay_db_version', self::SMARTPAY_CURRENT_DB_VERSION);
    33         }
    34     }
    35 
    3623    /**
    3724     * do staff, when add/update previous database
     
    4027    public function _update_database_if_available()
    4128    {
    42         // update tables when plugin updating
    43         //first add the version to wp_options table
    44         $oldVersion = get_option( 'smartpay_db_version') ?? null;
    45         // FIXME: should check with version compare
    46         if (floatval($oldVersion) < floatval(self::SMARTPAY_NEW_DB_VERSION)) {
    47             \AddSettingsColumnOnProductTable::up();
    48             update_option('smartpay_db_version', self::SMARTPAY_NEW_DB_VERSION);
    49         }
     29        \AddSettingsColumnOnProductTable::up();
    5030    }
    5131}
  • smartpay/tags/2.6.5/database/migrations/add_settings_column_on_products_table.php

    r2703855 r2707859  
    1717         */
    1818        $table = $wpdb->prefix . 'smartpay_products';
     19        $dbName = $wpdb->dbname;
    1920
    2021        // check the settings column exist on products table
    21         $row = $wpdb->get_results("SELECT settings FROM INFORMATION_SCHEMA.COLUMNS WHERE $table = $table AND column_name = 'settings'");
     22        $row = $wpdb->get_results("
     23            SELECT COLUMN_NAME
     24            FROM INFORMATION_SCHEMA.COLUMNS
     25            WHERE TABLE_SCHEMA = '$dbName' AND
     26            TABLE_NAME = '$table' AND
     27            COLUMN_NAME = 'settings'
     28        ");
    2229
    2330        // if no row found then create a new column on the products table
  • smartpay/tags/2.6.5/readme.txt

    r2703855 r2707859  
    33Tags: download manager, digital product, donation, ecommerce, stripe, paypal, paddle, document manager, file manager, download protection, recurring payment, donations, donation plugin, wordpress donation plugin, wp donation, fundraising, fundraiser, crowdfunding, wordpress donations, gutenberg, gutenberg donations, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations, bkash, bkash payment,
    44Requires at least: 4.9
    5 Tested up to: 5.9.1
     5Tested up to: 5.9.3
    66Requires PHP: 7.4.0
    7 Stable Tag: 2.6.4
     7Stable Tag: 2.6.5
    88License: GNU Version 2 or later
    99
     
    117117
    118118== Changelog ==
     119= [2.6.5] =
     120* Fix - Failed to create product
     121
    119122= [2.6.4] =
    120123* New - Pay Now/Get it Now button text change option on form
  • smartpay/tags/2.6.5/resources/views/mail/payment-receipt/product-purchase.php

    r2659357 r2707859  
    235235                                        <div style="background-color: #d4d5d6; height: 1px; line-height: 1px">&nbsp;</div>
    236236                                        <div class="sm-leading-16" style="line-height: 32px">&zwnj;</div>
    237                                         <p style="font-size: 14px; line-height: 20px; margin: 0; color: #a0a6b0"><?php echo __('You get this email because you sign up or purchase someting at ', 'smartpay') . get_bloginfo('name'); ?></p>
     237                                        <p style="font-size: 14px; line-height: 20px; margin: 0; color: #a0a6b0"><?php echo __('You have received this email because you signed up, donated or made a transaction at ', 'smartpay') . get_bloginfo('name'); ?></p>
    238238                                        <div class="sm-leading-16" style="line-height: 32px">&zwnj;</div>
    239239                                    </td>
  • smartpay/tags/2.6.5/smartpay.php

    r2703855 r2707859  
    66 * Plugin URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags: download manager, digital product, donation, ecommerce, paddle, stripe, paypal, document manager, file manager, download protection, recurring payment, donations, donation plugin, wordpress donation plugin, wp donation, fundraising, fundraiser, crowdfunding, wordpress donations, gutenberg, gutenberg donations, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations, bkash, bkash payment,
    8  * Version:     2.6.4
     8 * Version:     2.6.5
    99 * Author:      WPSmartPay
    1010 * Author URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
     
    2828defined('ABSPATH') || exit;
    2929
    30 define('SMARTPAY_VERSION', '2.6.4');
     30define('SMARTPAY_VERSION', '2.6.5');
    3131define('SMARTPAY_PLUGIN_FILE', __FILE__);
    3232define('SMARTPAY_PLUGIN_ASSETS', plugins_url('public', __FILE__));
  • smartpay/tags/2.6.5/vendor/autoload.php

    r2703855 r2707859  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     7    exit(1);
     8}
     9
    510require_once __DIR__ . '/composer/autoload_real.php';
    611
    7 return ComposerAutoloaderInit35ba30bea8d3c3621d960c30e9882154::getLoader();
     12return ComposerAutoloaderInit8d1fdce8fbb584cc0b42403cdd170a75::getLoader();
  • smartpay/tags/2.6.5/vendor/composer/autoload_real.php

    r2703855 r2707859  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit35ba30bea8d3c3621d960c30e9882154
     5class ComposerAutoloaderInit8d1fdce8fbb584cc0b42403cdd170a75
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit35ba30bea8d3c3621d960c30e9882154', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit8d1fdce8fbb584cc0b42403cdd170a75', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit35ba30bea8d3c3621d960c30e9882154', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit8d1fdce8fbb584cc0b42403cdd170a75', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         \Composer\Autoload\ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::getInitializer($loader)();
     32        call_user_func(\Composer\Autoload\ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire35ba30bea8d3c3621d960c30e9882154($fileIdentifier, $file);
     38            composerRequire8d1fdce8fbb584cc0b42403cdd170a75($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequire35ba30bea8d3c3621d960c30e9882154($fileIdentifier, $file)
     50function composerRequire8d1fdce8fbb584cc0b42403cdd170a75($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • smartpay/tags/2.6.5/vendor/composer/autoload_static.php

    r2703855 r2707859  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit35ba30bea8d3c3621d960c30e9882154
     7class ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75
    88{
    99    public static $files = array (
     
    7575    {
    7676        return \Closure::bind(function () use ($loader) {
    77             $loader->prefixLengthsPsr4 = ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::$prefixLengthsPsr4;
    78             $loader->prefixDirsPsr4 = ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::$prefixDirsPsr4;
    79             $loader->classMap = ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::$classMap;
     77            $loader->prefixLengthsPsr4 = ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::$prefixLengthsPsr4;
     78            $loader->prefixDirsPsr4 = ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::$prefixDirsPsr4;
     79            $loader->classMap = ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::$classMap;
    8080
    8181        }, null, ClassLoader::class);
  • smartpay/tags/2.6.5/vendor/composer/installed.php

    r2703855 r2707859  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => 'v2.6.4',
    4         'version' => '2.6.4.0',
     3        'pretty_version' => 'v2.6.5',
     4        'version' => '2.6.5.0',
    55        'type' => 'library',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '0a9c91f906b8e2704a18171cc1341bc44c03bd58',
     8        'reference' => 'c4b1b1765c71ee6f9af4576ee62e36ce08ecf290',
    99        'name' => 'wp-smartpay/core',
    1010        'dev' => false,
     
    5757        ),
    5858        'wp-smartpay/core' => array(
    59             'pretty_version' => 'v2.6.4',
    60             'version' => '2.6.4.0',
     59            'pretty_version' => 'v2.6.5',
     60            'version' => '2.6.5.0',
    6161            'type' => 'library',
    6262            'install_path' => __DIR__ . '/../../',
    6363            'aliases' => array(),
    64             'reference' => '0a9c91f906b8e2704a18171cc1341bc44c03bd58',
     64            'reference' => 'c4b1b1765c71ee6f9af4576ee62e36ce08ecf290',
    6565            'dev_requirement' => false,
    6666        ),
  • smartpay/trunk/app/Activator.php

    r2633882 r2707859  
    1010{
    1111    public $upload;
     12    /**
     13     * if any changes/updates on database
     14     * update the database version
     15     * @var $db_version
     16     */
     17    private const SMARTPAY_DB_VERSION = '2.0';
     18
    1219    public function __construct()
    1320    {
     
    137144
    138145        update_option('smartpay_settings', array_merge($smartpay_settings, $options));
     146
     147        // set the db version to option table
     148        if (is_null(get_option( 'smartpay_db_version'))){
     149            add_option('smartpay_db_version', self::SMARTPAY_DB_VERSION);
     150        } else {
     151            update_option('smartpay_db_version', self::SMARTPAY_DB_VERSION);
     152        }
     153
    139154    }
    140155
  • smartpay/trunk/app/Updater.php

    r2703855 r2707859  
    66class Updater
    77{
    8     private const SMARTPAY_CURRENT_DB_VERSION = '1.1';
    9     private const SMARTPAY_NEW_DB_VERSION = '1.2';
    108    public function __construct()
    119    {
    12         $this->_set_smartpay_db_version();
    1310        // if needed to update/add new table or column
    1411        $this->_update_database_if_available();
     
    2421    }
    2522
    26     public function _set_smartpay_db_version()
    27     {
    28         // after adding the migration on database, should set the db version into wp options table
    29         // that will help us to compare with previous version
    30         $smartpay_db_version =get_option( 'smartpay_db_version') ?? null;
    31         if (!$smartpay_db_version){
    32             add_option('smartpay_db_version', self::SMARTPAY_CURRENT_DB_VERSION);
    33         }
    34     }
    35 
    3623    /**
    3724     * do staff, when add/update previous database
     
    4027    public function _update_database_if_available()
    4128    {
    42         // update tables when plugin updating
    43         //first add the version to wp_options table
    44         $oldVersion = get_option( 'smartpay_db_version') ?? null;
    45         // FIXME: should check with version compare
    46         if (floatval($oldVersion) < floatval(self::SMARTPAY_NEW_DB_VERSION)) {
    47             \AddSettingsColumnOnProductTable::up();
    48             update_option('smartpay_db_version', self::SMARTPAY_NEW_DB_VERSION);
    49         }
     29        \AddSettingsColumnOnProductTable::up();
    5030    }
    5131}
  • smartpay/trunk/database/migrations/add_settings_column_on_products_table.php

    r2703855 r2707859  
    1717         */
    1818        $table = $wpdb->prefix . 'smartpay_products';
     19        $dbName = $wpdb->dbname;
    1920
    2021        // check the settings column exist on products table
    21         $row = $wpdb->get_results("SELECT settings FROM INFORMATION_SCHEMA.COLUMNS WHERE $table = $table AND column_name = 'settings'");
     22        $row = $wpdb->get_results("
     23            SELECT COLUMN_NAME
     24            FROM INFORMATION_SCHEMA.COLUMNS
     25            WHERE TABLE_SCHEMA = '$dbName' AND
     26            TABLE_NAME = '$table' AND
     27            COLUMN_NAME = 'settings'
     28        ");
    2229
    2330        // if no row found then create a new column on the products table
  • smartpay/trunk/readme.txt

    r2703855 r2707859  
    33Tags: download manager, digital product, donation, ecommerce, stripe, paypal, paddle, document manager, file manager, download protection, recurring payment, donations, donation plugin, wordpress donation plugin, wp donation, fundraising, fundraiser, crowdfunding, wordpress donations, gutenberg, gutenberg donations, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations, bkash, bkash payment,
    44Requires at least: 4.9
    5 Tested up to: 5.9.1
     5Tested up to: 5.9.3
    66Requires PHP: 7.4.0
    7 Stable Tag: 2.6.4
     7Stable Tag: 2.6.5
    88License: GNU Version 2 or later
    99
     
    117117
    118118== Changelog ==
     119= [2.6.5] =
     120* Fix - Failed to create product
     121
    119122= [2.6.4] =
    120123* New - Pay Now/Get it Now button text change option on form
  • smartpay/trunk/resources/views/mail/payment-receipt/product-purchase.php

    r2659357 r2707859  
    235235                                        <div style="background-color: #d4d5d6; height: 1px; line-height: 1px">&nbsp;</div>
    236236                                        <div class="sm-leading-16" style="line-height: 32px">&zwnj;</div>
    237                                         <p style="font-size: 14px; line-height: 20px; margin: 0; color: #a0a6b0"><?php echo __('You get this email because you sign up or purchase someting at ', 'smartpay') . get_bloginfo('name'); ?></p>
     237                                        <p style="font-size: 14px; line-height: 20px; margin: 0; color: #a0a6b0"><?php echo __('You have received this email because you signed up, donated or made a transaction at ', 'smartpay') . get_bloginfo('name'); ?></p>
    238238                                        <div class="sm-leading-16" style="line-height: 32px">&zwnj;</div>
    239239                                    </td>
  • smartpay/trunk/smartpay.php

    r2703855 r2707859  
    66 * Plugin URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags: download manager, digital product, donation, ecommerce, paddle, stripe, paypal, document manager, file manager, download protection, recurring payment, donations, donation plugin, wordpress donation plugin, wp donation, fundraising, fundraiser, crowdfunding, wordpress donations, gutenberg, gutenberg donations, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations, bkash, bkash payment,
    8  * Version:     2.6.4
     8 * Version:     2.6.5
    99 * Author:      WPSmartPay
    1010 * Author URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
     
    2828defined('ABSPATH') || exit;
    2929
    30 define('SMARTPAY_VERSION', '2.6.4');
     30define('SMARTPAY_VERSION', '2.6.5');
    3131define('SMARTPAY_PLUGIN_FILE', __FILE__);
    3232define('SMARTPAY_PLUGIN_ASSETS', plugins_url('public', __FILE__));
  • smartpay/trunk/vendor/autoload.php

    r2703855 r2707859  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     7    exit(1);
     8}
     9
    510require_once __DIR__ . '/composer/autoload_real.php';
    611
    7 return ComposerAutoloaderInit35ba30bea8d3c3621d960c30e9882154::getLoader();
     12return ComposerAutoloaderInit8d1fdce8fbb584cc0b42403cdd170a75::getLoader();
  • smartpay/trunk/vendor/composer/autoload_real.php

    r2703855 r2707859  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit35ba30bea8d3c3621d960c30e9882154
     5class ComposerAutoloaderInit8d1fdce8fbb584cc0b42403cdd170a75
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit35ba30bea8d3c3621d960c30e9882154', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit8d1fdce8fbb584cc0b42403cdd170a75', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit35ba30bea8d3c3621d960c30e9882154', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit8d1fdce8fbb584cc0b42403cdd170a75', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         \Composer\Autoload\ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::getInitializer($loader)();
     32        call_user_func(\Composer\Autoload\ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire35ba30bea8d3c3621d960c30e9882154($fileIdentifier, $file);
     38            composerRequire8d1fdce8fbb584cc0b42403cdd170a75($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequire35ba30bea8d3c3621d960c30e9882154($fileIdentifier, $file)
     50function composerRequire8d1fdce8fbb584cc0b42403cdd170a75($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • smartpay/trunk/vendor/composer/autoload_static.php

    r2703855 r2707859  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit35ba30bea8d3c3621d960c30e9882154
     7class ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75
    88{
    99    public static $files = array (
     
    7575    {
    7676        return \Closure::bind(function () use ($loader) {
    77             $loader->prefixLengthsPsr4 = ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::$prefixLengthsPsr4;
    78             $loader->prefixDirsPsr4 = ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::$prefixDirsPsr4;
    79             $loader->classMap = ComposerStaticInit35ba30bea8d3c3621d960c30e9882154::$classMap;
     77            $loader->prefixLengthsPsr4 = ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::$prefixLengthsPsr4;
     78            $loader->prefixDirsPsr4 = ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::$prefixDirsPsr4;
     79            $loader->classMap = ComposerStaticInit8d1fdce8fbb584cc0b42403cdd170a75::$classMap;
    8080
    8181        }, null, ClassLoader::class);
  • smartpay/trunk/vendor/composer/installed.php

    r2703855 r2707859  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => 'v2.6.4',
    4         'version' => '2.6.4.0',
     3        'pretty_version' => 'v2.6.5',
     4        'version' => '2.6.5.0',
    55        'type' => 'library',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '0a9c91f906b8e2704a18171cc1341bc44c03bd58',
     8        'reference' => 'c4b1b1765c71ee6f9af4576ee62e36ce08ecf290',
    99        'name' => 'wp-smartpay/core',
    1010        'dev' => false,
     
    5757        ),
    5858        'wp-smartpay/core' => array(
    59             'pretty_version' => 'v2.6.4',
    60             'version' => '2.6.4.0',
     59            'pretty_version' => 'v2.6.5',
     60            'version' => '2.6.5.0',
    6161            'type' => 'library',
    6262            'install_path' => __DIR__ . '/../../',
    6363            'aliases' => array(),
    64             'reference' => '0a9c91f906b8e2704a18171cc1341bc44c03bd58',
     64            'reference' => 'c4b1b1765c71ee6f9af4576ee62e36ce08ecf290',
    6565            'dev_requirement' => false,
    6666        ),
Note: See TracChangeset for help on using the changeset viewer.