Changeset 2240220
- Timestamp:
- 02/07/2020 01:36:26 AM (6 years ago)
- Location:
- spocket/trunk
- Files:
-
- 9 edited
-
changelog.txt (modified) (1 diff)
-
composer.json (modified) (1 diff)
-
composer.lock (modified) (6 diffs)
-
index.php (modified) (1 diff)
-
lib/ActivationCheck/Requirements.php (modified) (6 diffs)
-
lib/Common/Requirements.php (modified) (9 diffs)
-
lib/Plugin.php (modified) (1 diff)
-
package.json (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spocket/trunk/changelog.txt
r2190980 r2240220 1 1 *** Spocket for WooCommerce Changelog *** 2 2 3 2019-12-09 - versin 1.5.6 4 * Update server verification check 3 5 2019-11-12 - version 1.5.5 4 6 * Fix assets on extension -
spocket/trunk/composer.json
r2146731 r2240220 10 10 "vlucas/phpdotenv": "2.5.1", 11 11 "composer/installers": "1.5.0", 12 "automattic/vipwpcs": "^2.0" 12 "automattic/vipwpcs": "^2.0", 13 "wp-coding-standards/wpcs": "^2.2", 14 "woocommerce/woocommerce-sniffs": "^0.0.9" 13 15 }, 14 16 "require-dev": { -
spocket/trunk/composer.lock
r2146731 r2240220 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " e8daa3687a3ddeee31af67c35ee31ece",7 "content-hash": "14b004de59a6077d12750de66ce0fe9e", 8 8 "packages": [ 9 9 { … … 174 174 }, 175 175 { 176 "name": "dealerdirect/phpcodesniffer-composer-installer", 177 "version": "v0.5.0", 178 "source": { 179 "type": "git", 180 "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", 181 "reference": "e749410375ff6fb7a040a68878c656c2e610b132" 182 }, 183 "dist": { 184 "type": "zip", 185 "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/e749410375ff6fb7a040a68878c656c2e610b132", 186 "reference": "e749410375ff6fb7a040a68878c656c2e610b132", 187 "shasum": "" 188 }, 189 "require": { 190 "composer-plugin-api": "^1.0", 191 "php": "^5.3|^7", 192 "squizlabs/php_codesniffer": "^2|^3" 193 }, 194 "require-dev": { 195 "composer/composer": "*", 196 "phpcompatibility/php-compatibility": "^9.0", 197 "sensiolabs/security-checker": "^4.1.0" 198 }, 199 "type": "composer-plugin", 200 "extra": { 201 "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" 202 }, 203 "autoload": { 204 "psr-4": { 205 "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" 206 } 207 }, 208 "notification-url": "https://packagist.org/downloads/", 209 "license": [ 210 "MIT" 211 ], 212 "authors": [ 213 { 214 "name": "Franck Nijhof", 215 "email": "franck.nijhof@dealerdirect.com", 216 "homepage": "http://www.frenck.nl", 217 "role": "Developer / IT Manager" 218 } 219 ], 220 "description": "PHP_CodeSniffer Standards Composer Installer Plugin", 221 "homepage": "http://www.dealerdirect.com", 222 "keywords": [ 223 "PHPCodeSniffer", 224 "PHP_CodeSniffer", 225 "code quality", 226 "codesniffer", 227 "composer", 228 "installer", 229 "phpcs", 230 "plugin", 231 "qa", 232 "quality", 233 "standard", 234 "standards", 235 "style guide", 236 "stylecheck", 237 "tests" 238 ], 239 "time": "2018-10-26T13:21:45+00:00" 240 }, 241 { 176 242 "name": "nategood/httpful", 177 243 "version": "0.2.20", … … 224 290 }, 225 291 { 292 "name": "phpcompatibility/php-compatibility", 293 "version": "9.3.4", 294 "source": { 295 "type": "git", 296 "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", 297 "reference": "1f37659196e4f3113ea506a7efba201c52303bf1" 298 }, 299 "dist": { 300 "type": "zip", 301 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/1f37659196e4f3113ea506a7efba201c52303bf1", 302 "reference": "1f37659196e4f3113ea506a7efba201c52303bf1", 303 "shasum": "" 304 }, 305 "require": { 306 "php": ">=5.3", 307 "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" 308 }, 309 "conflict": { 310 "squizlabs/php_codesniffer": "2.6.2" 311 }, 312 "require-dev": { 313 "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" 314 }, 315 "suggest": { 316 "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", 317 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 318 }, 319 "type": "phpcodesniffer-standard", 320 "notification-url": "https://packagist.org/downloads/", 321 "license": [ 322 "LGPL-3.0-or-later" 323 ], 324 "authors": [ 325 { 326 "name": "Wim Godden", 327 "homepage": "https://github.com/wimg", 328 "role": "lead" 329 }, 330 { 331 "name": "Juliette Reinders Folmer", 332 "homepage": "https://github.com/jrfnl", 333 "role": "lead" 334 }, 335 { 336 "name": "Contributors", 337 "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" 338 } 339 ], 340 "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", 341 "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", 342 "keywords": [ 343 "compatibility", 344 "phpcs", 345 "standards" 346 ], 347 "time": "2019-11-15T04:12:02+00:00" 348 }, 349 { 350 "name": "phpcompatibility/phpcompatibility-paragonie", 351 "version": "1.3.0", 352 "source": { 353 "type": "git", 354 "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", 355 "reference": "b862bc32f7e860d0b164b199bd995e690b4b191c" 356 }, 357 "dist": { 358 "type": "zip", 359 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/b862bc32f7e860d0b164b199bd995e690b4b191c", 360 "reference": "b862bc32f7e860d0b164b199bd995e690b4b191c", 361 "shasum": "" 362 }, 363 "require": { 364 "phpcompatibility/php-compatibility": "^9.0" 365 }, 366 "require-dev": { 367 "dealerdirect/phpcodesniffer-composer-installer": "^0.5", 368 "paragonie/random_compat": "dev-master", 369 "paragonie/sodium_compat": "dev-master" 370 }, 371 "suggest": { 372 "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", 373 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 374 }, 375 "type": "phpcodesniffer-standard", 376 "notification-url": "https://packagist.org/downloads/", 377 "license": [ 378 "LGPL-3.0-or-later" 379 ], 380 "authors": [ 381 { 382 "name": "Wim Godden", 383 "role": "lead" 384 }, 385 { 386 "name": "Juliette Reinders Folmer", 387 "role": "lead" 388 } 389 ], 390 "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.", 391 "homepage": "http://phpcompatibility.com/", 392 "keywords": [ 393 "compatibility", 394 "paragonie", 395 "phpcs", 396 "polyfill", 397 "standards" 398 ], 399 "time": "2019-11-04T15:17:54+00:00" 400 }, 401 { 402 "name": "phpcompatibility/phpcompatibility-wp", 403 "version": "2.1.0", 404 "source": { 405 "type": "git", 406 "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", 407 "reference": "41bef18ba688af638b7310666db28e1ea9158b2f" 408 }, 409 "dist": { 410 "type": "zip", 411 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/41bef18ba688af638b7310666db28e1ea9158b2f", 412 "reference": "41bef18ba688af638b7310666db28e1ea9158b2f", 413 "shasum": "" 414 }, 415 "require": { 416 "phpcompatibility/php-compatibility": "^9.0", 417 "phpcompatibility/phpcompatibility-paragonie": "^1.0" 418 }, 419 "require-dev": { 420 "dealerdirect/phpcodesniffer-composer-installer": "^0.5" 421 }, 422 "suggest": { 423 "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", 424 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 425 }, 426 "type": "phpcodesniffer-standard", 427 "notification-url": "https://packagist.org/downloads/", 428 "license": [ 429 "LGPL-3.0-or-later" 430 ], 431 "authors": [ 432 { 433 "name": "Wim Godden", 434 "role": "lead" 435 }, 436 { 437 "name": "Juliette Reinders Folmer", 438 "role": "lead" 439 } 440 ], 441 "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.", 442 "homepage": "http://phpcompatibility.com/", 443 "keywords": [ 444 "compatibility", 445 "phpcs", 446 "standards", 447 "wordpress" 448 ], 449 "time": "2019-08-28T14:22:28+00:00" 450 }, 451 { 226 452 "name": "squizlabs/php_codesniffer", 227 453 "version": "3.4.2", … … 325 551 }, 326 552 { 553 "name": "woocommerce/woocommerce-sniffs", 554 "version": "0.0.9", 555 "source": { 556 "type": "git", 557 "url": "https://github.com/woocommerce/woocommerce-sniffs.git", 558 "reference": "7677a84e9a355fe1e088f704090be891e7a6d427" 559 }, 560 "dist": { 561 "type": "zip", 562 "url": "https://api.github.com/repos/woocommerce/woocommerce-sniffs/zipball/7677a84e9a355fe1e088f704090be891e7a6d427", 563 "reference": "7677a84e9a355fe1e088f704090be891e7a6d427", 564 "shasum": "" 565 }, 566 "require": { 567 "dealerdirect/phpcodesniffer-composer-installer": "0.5.0", 568 "php": ">=7.0", 569 "phpcompatibility/phpcompatibility-wp": "2.1.0", 570 "wp-coding-standards/wpcs": "2.2.0" 571 }, 572 "type": "phpcodesniffer-standard", 573 "notification-url": "https://packagist.org/downloads/", 574 "license": [ 575 "MIT" 576 ], 577 "authors": [ 578 { 579 "name": "Claudio Sanches", 580 "email": "claudio@automattic.com" 581 } 582 ], 583 "description": "WooCommerce sniffs", 584 "keywords": [ 585 "phpcs", 586 "standards", 587 "woocommerce", 588 "wordpress" 589 ], 590 "time": "2019-11-11T15:48:34+00:00" 591 }, 592 { 327 593 "name": "wp-coding-standards/wpcs", 328 "version": "2. 1.1",594 "version": "2.2.0", 329 595 "source": { 330 596 "type": "git", 331 597 "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", 332 "reference": " bd9c33152115e6741e3510ff7189605b35167908"333 }, 334 "dist": { 335 "type": "zip", 336 "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/ bd9c33152115e6741e3510ff7189605b35167908",337 "reference": " bd9c33152115e6741e3510ff7189605b35167908",598 "reference": "f90e8692ce97b693633db7ab20bfa78d930f536a" 599 }, 600 "dist": { 601 "type": "zip", 602 "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/f90e8692ce97b693633db7ab20bfa78d930f536a", 603 "reference": "f90e8692ce97b693633db7ab20bfa78d930f536a", 338 604 "shasum": "" 339 605 }, … … 358 624 { 359 625 "name": "Contributors", 360 "homepage": "https://github.com/WordPress -Coding-Standards/WordPress-Coding-Standards/graphs/contributors"626 "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors" 361 627 } 362 628 ], … … 367 633 "wordpress" 368 634 ], 369 "time": "2019- 05-21T02:50:00+00:00"635 "time": "2019-11-11T12:34:03+00:00" 370 636 } 371 637 ], -
spocket/trunk/index.php
r2208843 r2240220 3 3 Plugin Name: Spocket 4 4 Description: Spocket - Dropshipping US/European Products 5 Version: 1.5. 65 Version: 1.5.7 6 6 Author: Spocket 7 7 Author URI: https://www.spocket.co -
spocket/trunk/lib/ActivationCheck/Requirements.php
r2208843 r2240220 26 26 * @return bool 27 27 */ 28 private function isWoocommerceActivated() 29 { 28 private function isWoocommerceActivated() { 30 29 if (is_plugin_active('woocommerce/woocommerce.php')) { 31 30 return true; … … 40 39 * @return void 41 40 */ 42 private function deactivateSpocketPlugin() 43 { 41 private function deactivateSpocketPlugin() { 44 42 if (current_user_can('activate_plugins') && is_plugin_active(self::$object->plugin->getPluginBaseName())) { 45 43 deactivate_plugins(plugin_basename(self::$object->plugin->getPluginBaseName())); … … 56 54 * @return void 57 55 */ 58 public function __construct( \Spocket\Plugin $plugin) 59 { 56 public function __construct( \Spocket\Plugin $plugin) { 60 57 self::$object = $this; 61 58 $this->plugin = $plugin; … … 67 64 * @return void 68 65 */ 69 public static function disablePluginIfRequirementsFail() 70 { 66 public static function disablePluginIfRequirementsFail() { 71 67 if (!self::$object->isWoocommerceActivated()) { 72 68 self::$object->deactivateSpocketPlugin(); … … 88 84 * @return void 89 85 */ 90 public static function notifyUser( $title, $message) 91 { 92 echo '<div class="error"> 93 <p>'. 86 public static function notifyUser( $title, $message) { 87 echo '<div class="error"> 88 <p>' . 94 89 esc_html__($title) 95 . '</p>90 . '</p> 96 91 <p> 97 <b>Error: </b>' . esc_html__($message)98 . '</p>92 <b>Error: </b>' . esc_html__($message) 93 . '</p> 99 94 </div>'; 100 95 } … … 105 100 * @return void 106 101 */ 107 public function run() 108 { 102 public function run() { 109 103 add_action('admin_init', array($this, 'disablePluginIfRequirementsFail')); 110 104 } -
spocket/trunk/lib/Common/Requirements.php
r2208843 r2240220 13 13 * @return array cURL requirements check results 14 14 */ 15 public static function checkCurl() 16 { 15 public static function checkCurl() { 17 16 if (!in_array('curl', get_loaded_extensions())) { 18 17 return array( … … 35 34 * @return array SSL requirements check results 36 35 */ 37 public static function checkSSLConnection() 38 { 36 public static function checkSSLConnection() { 39 37 if (!getenv('IS_DEV') && ( !isset($_SERVER['HTTPS']) || empty($_SERVER['HTTPS']) || 'on' !== $_SERVER['HTTPS'] )) { 40 38 return array( … … 60 58 * @return array Store name requirements check results 61 59 */ 62 public static function getStoreNameRequirementsStatus() 63 { 60 public static function getStoreNameRequirementsStatus() { 64 61 65 62 if (get_option('blogname') === '') { … … 86 83 * @return array Current User requirements check results 87 84 */ 88 public static function getUserRequirementsStatus() 89 { 85 public static function getUserRequirementsStatus() { 90 86 $currentUser = wp_get_current_user(); 91 87 if ($currentUser->get('user_email') === '') { … … 112 108 * @return array WooCommerce requirements check results 113 109 */ 114 public static function getWooCommerceRequirementsStatus() 115 { 110 public static function getWooCommerceRequirementsStatus() { 116 111 if (!function_exists('wc')) { 117 112 return array( … … 152 147 * @return array WordPress requirements check results 153 148 */ 154 public static function getWordPressRequirementsStatus() 155 { 149 public static function getWordPressRequirementsStatus() { 156 150 if (!version_compare(get_bloginfo('version'), '4.4', '>=')) { 157 151 return array( … … 180 174 * @return array Permalinks requirements check results 181 175 */ 182 public static function getPermalinksRequirementsStatus() 183 { 176 public static function getPermalinksRequirementsStatus() { 184 177 if (get_option('permalink_structure', '') === '') { 185 178 return array( … … 208 201 * @return array Requirements check results 209 202 */ 210 public static function getRequirementsStatus() 211 { 203 public static function getRequirementsStatus() { 212 204 $requirementsStatus = array( 213 205 'woocommerce' => self::getWooCommerceRequirementsStatus(), … … 222 214 } 223 215 224 private static function getApiURL() 225 { 216 private static function getApiURL() { 226 217 $plugin = new \Spocket\Plugin(); 227 218 return $plugin->getApiURL(); -
spocket/trunk/lib/Plugin.php
r2208843 r2240220 34 34 * @var string 35 35 */ 36 protected $version = '1.5. 6';36 protected $version = '1.5.7'; 37 37 38 38 /**1000 -
spocket/trunk/package.json
r2152883 r2240220 3 3 "private": true, 4 4 "scripts": { 5 "test": "echo \"Error: no test specified\" && exit 1", 5 "test": "./vendor/bin/phpcs --standard=./phpcs.xml --warning-severity=0 --ignore-annotations", 6 "fix_errors": "./vendor/bin/phpcbf --standard=./phpcs.xml", 6 7 "build": "cross-env NODE_ENV=production webpack --config webpack.config.js --progress --hide-modules --mode production", 7 8 "build:dev": "cross-env NODE_ENV=development webpack --config webpack.config.js --progress --hide-modules --mode development", -
spocket/trunk/readme.txt
r2208843 r2240220 3 3 Requires at least: 4.4 4 4 Tested up to: 5.3 5 Stable tag: 1.5. 65 Stable tag: 1.5.7 6 6 7 7 Find fast shipping products from reliable suppliers, import them to [your WooCommerce store](https://www.spocket.co/for-woocommerce) and manage your orders automatically: all for free. … … 50 50 [Spocket's](https://www.spocket.co/for-woocommerce) support team is always here to help you out. Have any questions or concerns? Just send us a message via the real-time messaging system inside Spocket's dashboard. 51 51 52 _Here’s how **[Marc built his brand and made $178,492 in just three months](https://www.spocket.co/blogs/how-i-made-178-492-in-three-months-by-dropshipping-us-eu-products)**, using Spocket!_ 53 54 _**Looking for unbeatable strategies on how to grow your eCommerce store? Learn from other expert entrepreneurs in the [Spocket Academy](https://academy.spocket.co/), or join the discussion with other like-minded business owners on the Spocket [Facebook group](https://www.facebook.com/groups/spocketofficial/), a community of over 30,000 successful merchants.**_ 55 56 _Here’s how **[Erin was able to scale multiple businesses to $442,991 in just half a year](https://www.spocket.co/blogs/how-this-entrepreneur-earned-442-991-usd-in-just-six-months-by-building-a-business-that-people-loved)** by building businesses that people loved!_ 57 52 58 == Frequently Asked Questions == 53 59
Note: See TracChangeset
for help on using the changeset viewer.