-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix autocomplete of the Site Key field by LasPass. * Add requirement to check the site config after changes in credentials. * Fix activation of hCaptcha with empty keys. * Update Brevo logo. * Add auto-detect language info. * Update readme.txt. * Update sample hcaptcha label. * LearnDash Login integration. * WPCS in LearnDash Login. * LearnDash Register integration. * Improve adding error messages. * LearnDash Lost Password integration. * LearnDash Lost Password integration. * Fix form detection for Auto-Verify. * Fix SendInBlue form working in the post content only. Fix auto-verify form not working on the homepage. * Fix Passter and LearnDash forms working in the post content only. * Fix Passter and LearnDash forms working in the post content only. * Fix readme.txt. * Fix readme.txt. * Fix hCaptcha not loading correctly for Brevo form. * Raise Main.php test coverage to 100%. * Raise Main.php test coverage to 100%. * Move wpforo filter from Main. * Move supportCandy filter from Main. * Raise Main.php test coverage to 100%. * Raise Main.php test coverage to 100%. * Raise hcaptcha.php test coverage to 100%. * Raise WP classes test coverage to 100%. * Raise WC classes test coverage to 100%. * Update readme.txt. * Raise Abstract classes test coverage to 100%. * Bump up version. * Apply suggestions from code review --------- Co-authored-by: e271828- <[email protected]>
- Loading branch information
1 parent
c4917db
commit 23b452b
Showing
38 changed files
with
1,404 additions
and
350 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
.tests/php/integration/Stubs/Automattic/WooCommerce/Utilities/FeaturesUtil.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* FeaturesUtil stub file | ||
* | ||
* @package HCaptcha\Tests | ||
*/ | ||
|
||
// phpcs:disable Generic.Commenting.DocComment.MissingShort | ||
/** @noinspection PhpIllegalPsrClassPathInspection */ | ||
/** @noinspection PhpUndefinedClassInspection */ | ||
// phpcs:enable Generic.Commenting.DocComment.MissingShort | ||
|
||
namespace Automattic\WooCommerce\Utilities; | ||
|
||
/** | ||
* Class FeaturesUtil | ||
*/ | ||
class FeaturesUtil { | ||
/** | ||
* Declare (in)compatibility with a given feature for a given plugin. | ||
* | ||
* This method MUST be executed from inside a handler for the 'before_woocommerce_init' hook and | ||
* SHOULD be executed from the main plugin file passing __FILE__ or 'my-plugin/my-plugin.php' for the | ||
* $plugin_file argument. | ||
* | ||
* @param string $feature_id Unique feature id. | ||
* @param string $plugin_file The full plugin file path. | ||
* @param bool $positive_compatibility True if the plugin declares being compatible with the feature, false if it declares being incompatible. | ||
* @return bool True on success, false on error (feature doesn't exist or not inside the required hook). | ||
*/ | ||
public static function declare_compatibility( string $feature_id, string $plugin_file, bool $positive_compatibility = true ): bool { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.