Changeset 2393053
- Timestamp:
- 10/04/2020 06:09:39 AM (5 years ago)
- Location:
- woo-license-keys/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (2 diffs)
-
app/Config/app.php (modified) (1 diff)
-
app/Controllers/ValidatorController.php (modified) (8 diffs)
-
app/Lib/functions.php (modified) (4 diffs)
-
plugin.php (modified) (1 diff)
-
vendor/composer/installed.json (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-license-keys/trunk/README.txt
r2387427 r2393053 7 7 Requires PHP: 5.4 8 8 Tested up to: 5.5 9 Stable tag: 1.5. 59 Stable tag: 1.5.6 10 10 License: GPLv3 11 11 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 86 86 == Changelog == 87 87 88 = 1.5.6 = 89 *Release Date - 4 Oct 2020* 90 91 * Added new hooks to filter error API responses. 92 * Ability to use API functions (inside setup) with a string parameter. 93 * Framework files added. 94 88 95 = 1.5.5 = 89 96 *Release Date - 23 Sep 2020* -
woo-license-keys/trunk/app/Config/app.php
r2387427 r2393053 19 19 ], 20 20 21 'version' => '1.5. 5',21 'version' => '1.5.6', 22 22 23 23 'author' => '10 Quality Studio <https://www.10quality.com/>', -
woo-license-keys/trunk/app/Controllers/ValidatorController.php
r2387427 r2393053 20 20 * @license GPLv3 21 21 * @package woo-license-keys 22 * @version 1.5. 522 * @version 1.5.6 23 23 */ 24 24 class ValidatorController extends Controller … … 96 96 } catch ( ValidationException $e ) { 97 97 $response->success = false; 98 $response = apply_filters( 'woocommerce_license_keys_activate_exception_response', $response, $request, $e ); 98 99 do_action( 99 100 'woocommerce_license_key_api_exception', … … 106 107 Log::error( $e ); 107 108 $response->message = $e->getMessage(); 109 $response = apply_filters( 'woocommerce_license_keys_activate_fatal_response', $response, $request, $e ); 108 110 } catch ( Exception $e ) { 109 111 Log::error( $e ); … … 158 160 } catch ( ValidationException $e ) { 159 161 $response->success = false; 162 $response = apply_filters( 'woocommerce_license_keys_validate_exception_response', $response, $request, $e ); 160 163 do_action( 161 164 'woocommerce_license_key_api_exception', … … 168 171 Log::error( $e ); 169 172 $response->message = $e->getMessage(); 173 $response = apply_filters( 'woocommerce_license_keys_validate_fatal_response', $response, $request, $e ); 170 174 } catch ( Exception $e ) { 171 175 Log::error( $e ); … … 224 228 } catch ( ValidationException $e ) { 225 229 $response->success = false; 230 $response = apply_filters( 'woocommerce_license_keys_deactivate_exception_response', $response, $request, $e ); 226 231 do_action( 227 232 'woocommerce_license_key_api_exception', … … 234 239 Log::error( $e ); 235 240 $response->message = $e->getMessage(); 241 $response = apply_filters( 'woocommerce_license_keys_deactivate_fatal_response', $response, $request, $e ); 236 242 } catch ( Exception $e ) { 237 243 Log::error( $e ); … … 353 359 public function via_function_args( $args, $activation_id = null, $requires_activation = false ) 354 360 { 361 if ( is_string( $args ) ) 362 $args = wc_find_license_key( $args ); 355 363 // Validations 356 364 if ( is_object( $args ) && !$args instanceof LicenseKey ) 357 throw new Exception( 'Parameter must be a valid License Key model.' );365 throw new Exception( 'Parameter must be a valid License Key.' ); 358 366 if ( is_object( $args ) 359 367 && $args instanceof LicenseKey -
woo-license-keys/trunk/app/Lib/functions.php
r2364606 r2393053 10 10 * @license GPLv3 11 11 * @package woo-license-keys 12 * @version 1.5. 112 * @version 1.5.6 13 13 */ 14 14 … … 184 184 * @since 1.5.1 185 185 * 186 * @param array| \LicenseKeys\Models\LicenseKey $args Activation arguments.186 * @param array|string|\LicenseKeys\Models\LicenseKey $args Activation arguments. 187 187 * 188 188 * @return \WPMVC\Response Response from validator. … … 201 201 * @since 1.5.1 202 202 * 203 * @param array| \LicenseKeys\Models\LicenseKey $args Validation arguments.204 * @param int $activation_id Expected if a model is passed as argument.203 * @param array|string|\LicenseKeys\Models\LicenseKey $args Validation arguments. 204 * @param int $activation_id Expected if a model is passed as argument. 205 205 * 206 206 * @return \WPMVC\Response Response from validator. … … 219 219 * @since 1.5.1 220 220 * 221 * @param array| \LicenseKeys\Models\LicenseKey $args Validation arguments.222 * @param int $activation_id Expected if a model is passed as argument.221 * @param array|string|\LicenseKeys\Models\LicenseKey $args Validation arguments. 222 * @param int $activation_id Expected if a model is passed as argument. 223 223 * 224 224 * @return \WPMVC\Response Response from validator. -
woo-license-keys/trunk/plugin.php
r2387427 r2393053 4 4 Plugin URI: https://www.10quality.com/product/woocommerce-license-keys/ 5 5 Description: Enable and handle "License Keys" with WooCommerce. 6 Version: 1.5. 56 Version: 1.5.6 7 7 Author: 10 Quality 8 8 Author URI: https://www.10quality.com/ -
woo-license-keys/trunk/vendor/composer/installed.json
r2387427 r2393053 676 676 { 677 677 "name": "nikic/php-parser", 678 "version": "v4.10. 1",679 "version_normalized": "4.10. 1.0",678 "version": "v4.10.2", 679 "version_normalized": "4.10.2.0", 680 680 "source": { 681 681 "type": "git", 682 682 "url": "https://github.com/nikic/PHP-Parser.git", 683 "reference": " 1b479e7592812411c20c34d9ed33db3957bde66e"684 }, 685 "dist": { 686 "type": "zip", 687 "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/ 1b479e7592812411c20c34d9ed33db3957bde66e",688 "reference": " 1b479e7592812411c20c34d9ed33db3957bde66e",683 "reference": "658f1be311a230e0907f5dfe0213742aff0596de" 684 }, 685 "dist": { 686 "type": "zip", 687 "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/658f1be311a230e0907f5dfe0213742aff0596de", 688 "reference": "658f1be311a230e0907f5dfe0213742aff0596de", 689 689 "shasum": "" 690 690 }, … … 697 697 "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" 698 698 }, 699 "time": "2020-09-2 3T18:23:49+00:00",699 "time": "2020-09-26T10:30:38+00:00", 700 700 "bin": [ 701 701 "bin/php-parse"
Note: See TracChangeset
for help on using the changeset viewer.