From 1bbae2f5943a84d031a1b6071401c387625a9395 Mon Sep 17 00:00:00 2001 From: tatumio Date: Thu, 2 Jun 2022 11:29:07 +0000 Subject: [PATCH] Update from https://github.com/tatumio/wordpress-plugin/commit/b1ca6fbd76b594876822ce202ef6152831d74577 --- README.txt | 3 +++ inc/Activator.php | 5 +---- inc/base/others/cachebuster-lib.php | 2 +- inc/base/others/cachebuster.php | 2 +- index.php | 2 +- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 8 ++++---- vendor/composer/autoload_static.php | 8 ++++---- vendor/tatum/nft-maker/src/Connectors/IpfsConnector.php | 4 ++-- vendor/tatum/nft-maker/vendor/autoload.php | 2 +- vendor/tatum/nft-maker/vendor/composer/autoload_real.php | 8 ++++---- .../tatum/nft-maker/vendor/composer/autoload_static.php | 8 ++++---- vendor/tatum/utils/vendor/autoload.php | 2 +- vendor/tatum/utils/vendor/composer/autoload_real.php | 8 ++++---- vendor/tatum/utils/vendor/composer/autoload_static.php | 8 ++++---- 15 files changed, 36 insertions(+), 36 deletions(-) diff --git a/README.txt b/README.txt index c0339cec..68c7e5cf 100644 --- a/README.txt +++ b/README.txt @@ -205,6 +205,9 @@ Added support for Testnet & detailed info about minted NFTs & more validation me = 2.0.28 = Fixed API key submit validation += 2.0.29 = +Fixed activator lazy nft testnet field & strip HTML and special chars from IPFS metadata + == Upgrade Notice == = 1.0.0 = diff --git a/inc/Activator.php b/inc/Activator.php index 1c978821..6dd79948 100644 --- a/inc/Activator.php +++ b/inc/Activator.php @@ -40,10 +40,6 @@ public function deactivate() { * @param boolean $errorlevel If true throw errors */ public function dbDelta($errorlevel) { - global $wpdb; - $lazyNftName = $this->getTableName("lazy_nft"); - $sql = "ALTER TABLE $lazyNftName ADD `testnet` BOOLEAN NOT NULL AFTER `prepared_nft_id`;"; - $wpdb->query($sql); } private function initDatabase() { @@ -70,6 +66,7 @@ private function initDatabase() { chain ENUM('CELO', 'ETH', 'BSC', 'ONE', 'MATIC') NOT NULL, error_cause varchar(256), prepared_nft_id bigint NOT NULL, + testnet BOOLEAN NOT NULL, UNIQUE KEY id (id), CONSTRAINT FK_LazyNft FOREIGN KEY (prepared_nft_id) REFERENCES $prepareNftName(id) ) $charset_collate;"; diff --git a/inc/base/others/cachebuster-lib.php b/inc/base/others/cachebuster-lib.php index 9bf75d5a..0a21047d 100644 --- a/inc/base/others/cachebuster-lib.php +++ b/inc/base/others/cachebuster-lib.php @@ -1,5 +1,5 @@ '4.15.4', 'react' => '17.0.2', diff --git a/inc/base/others/cachebuster.php b/inc/base/others/cachebuster.php index 03445861..ac4c3926 100644 --- a/inc/base/others/cachebuster.php +++ b/inc/base/others/cachebuster.php @@ -1,5 +1,5 @@ '6a83f9d51144ea6281f9d86d7bb8d70c', 'src/public/dist/vendor-admin.js' => '88674945a6b37489c984c3de1eaeb815', diff --git a/index.php b/index.php index 696f52a9..aa088426 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ * Description: NFT Maker is the easiest and fastest free plugin to work with NFTs without any blockchain development experience. * Author: Lukas Kotol * Author URI: https://t.me/LukasKotol - * Version: 2.0.28 + * Version: 2.0.29 * Text Domain: tatum * Domain Path: /languages * License: MIT diff --git a/vendor/autoload.php b/vendor/autoload.php index 2b9614ab..a3b2770f 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit4dc2469ac76a38dab8dea4c44690b80a::getLoader(); +return ComposerAutoloaderInit6ddb77796a46c13adddca7a25444fdf8::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 248710b9..2c6328e3 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit4dc2469ac76a38dab8dea4c44690b80a +class ComposerAutoloaderInit6ddb77796a46c13adddca7a25444fdf8 { private static $loader; @@ -22,15 +22,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit4dc2469ac76a38dab8dea4c44690b80a', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit6ddb77796a46c13adddca7a25444fdf8', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit4dc2469ac76a38dab8dea4c44690b80a', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit6ddb77796a46c13adddca7a25444fdf8', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit4dc2469ac76a38dab8dea4c44690b80a::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit6ddb77796a46c13adddca7a25444fdf8::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index f0a8e6e1..28fef80f 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit4dc2469ac76a38dab8dea4c44690b80a +class ComposerStaticInit6ddb77796a46c13adddca7a25444fdf8 { public static $prefixLengthsPsr4 = array ( 'k' => @@ -89,9 +89,9 @@ class ComposerStaticInit4dc2469ac76a38dab8dea4c44690b80a public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit4dc2469ac76a38dab8dea4c44690b80a::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit4dc2469ac76a38dab8dea4c44690b80a::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit4dc2469ac76a38dab8dea4c44690b80a::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit6ddb77796a46c13adddca7a25444fdf8::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit6ddb77796a46c13adddca7a25444fdf8::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit6ddb77796a46c13adddca7a25444fdf8::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/tatum/nft-maker/src/Connectors/IpfsConnector.php b/vendor/tatum/nft-maker/src/Connectors/IpfsConnector.php index af20f15f..ac47bcc2 100644 --- a/vendor/tatum/nft-maker/src/Connectors/IpfsConnector.php +++ b/vendor/tatum/nft-maker/src/Connectors/IpfsConnector.php @@ -114,8 +114,8 @@ private static function buildDataFiles($boundary, $file) { private static function createMetadataJson($product, $hash) { return json_encode(array( - 'name' => $product->get_title(), - 'description' => $product->get_description(), + 'name' => strip_tags(stripslashes($product->get_title())), + 'description' => strip_tags(stripslashes($product->get_description())), 'image' => "ipfs://$hash" ), JSON_UNESCAPED_SLASHES); } diff --git a/vendor/tatum/nft-maker/vendor/autoload.php b/vendor/tatum/nft-maker/vendor/autoload.php index 53a08c2a..43a1d2f7 100644 --- a/vendor/tatum/nft-maker/vendor/autoload.php +++ b/vendor/tatum/nft-maker/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitb256f69ab43264f0a019b0f89eeead4a::getLoader(); +return ComposerAutoloaderInit179325cca1997a4610e4a9073d755ce3::getLoader(); diff --git a/vendor/tatum/nft-maker/vendor/composer/autoload_real.php b/vendor/tatum/nft-maker/vendor/composer/autoload_real.php index 6ed90fd4..1b2b4774 100644 --- a/vendor/tatum/nft-maker/vendor/composer/autoload_real.php +++ b/vendor/tatum/nft-maker/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitb256f69ab43264f0a019b0f89eeead4a +class ComposerAutoloaderInit179325cca1997a4610e4a9073d755ce3 { private static $loader; @@ -22,15 +22,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitb256f69ab43264f0a019b0f89eeead4a', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit179325cca1997a4610e4a9073d755ce3', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInitb256f69ab43264f0a019b0f89eeead4a', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit179325cca1997a4610e4a9073d755ce3', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitb256f69ab43264f0a019b0f89eeead4a::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit179325cca1997a4610e4a9073d755ce3::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { diff --git a/vendor/tatum/nft-maker/vendor/composer/autoload_static.php b/vendor/tatum/nft-maker/vendor/composer/autoload_static.php index b1a90a9d..fd23ba18 100644 --- a/vendor/tatum/nft-maker/vendor/composer/autoload_static.php +++ b/vendor/tatum/nft-maker/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitb256f69ab43264f0a019b0f89eeead4a +class ComposerStaticInit179325cca1997a4610e4a9073d755ce3 { public static $prefixLengthsPsr4 = array ( 'k' => @@ -61,9 +61,9 @@ class ComposerStaticInitb256f69ab43264f0a019b0f89eeead4a public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitb256f69ab43264f0a019b0f89eeead4a::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitb256f69ab43264f0a019b0f89eeead4a::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitb256f69ab43264f0a019b0f89eeead4a::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit179325cca1997a4610e4a9073d755ce3::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit179325cca1997a4610e4a9073d755ce3::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit179325cca1997a4610e4a9073d755ce3::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/tatum/utils/vendor/autoload.php b/vendor/tatum/utils/vendor/autoload.php index e64c6500..7edae2a1 100644 --- a/vendor/tatum/utils/vendor/autoload.php +++ b/vendor/tatum/utils/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitda7f25d5b25ad6410facd0c879825f31::getLoader(); +return ComposerAutoloaderInit3e1a5fae4b8830b6e67dbb869beda6ed::getLoader(); diff --git a/vendor/tatum/utils/vendor/composer/autoload_real.php b/vendor/tatum/utils/vendor/composer/autoload_real.php index dda698ed..dda5a911 100644 --- a/vendor/tatum/utils/vendor/composer/autoload_real.php +++ b/vendor/tatum/utils/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitda7f25d5b25ad6410facd0c879825f31 +class ComposerAutoloaderInit3e1a5fae4b8830b6e67dbb869beda6ed { private static $loader; @@ -22,15 +22,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitda7f25d5b25ad6410facd0c879825f31', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit3e1a5fae4b8830b6e67dbb869beda6ed', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInitda7f25d5b25ad6410facd0c879825f31', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit3e1a5fae4b8830b6e67dbb869beda6ed', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitda7f25d5b25ad6410facd0c879825f31::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit3e1a5fae4b8830b6e67dbb869beda6ed::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { diff --git a/vendor/tatum/utils/vendor/composer/autoload_static.php b/vendor/tatum/utils/vendor/composer/autoload_static.php index 744ded9e..7b826027 100644 --- a/vendor/tatum/utils/vendor/composer/autoload_static.php +++ b/vendor/tatum/utils/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitda7f25d5b25ad6410facd0c879825f31 +class ComposerStaticInit3e1a5fae4b8830b6e67dbb869beda6ed { public static $prefixLengthsPsr4 = array ( 'H' => @@ -39,9 +39,9 @@ class ComposerStaticInitda7f25d5b25ad6410facd0c879825f31 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitda7f25d5b25ad6410facd0c879825f31::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitda7f25d5b25ad6410facd0c879825f31::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitda7f25d5b25ad6410facd0c879825f31::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit3e1a5fae4b8830b6e67dbb869beda6ed::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit3e1a5fae4b8830b6e67dbb869beda6ed::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit3e1a5fae4b8830b6e67dbb869beda6ed::$classMap; }, null, ClassLoader::class); }