Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1cae0e1310 | |||
| e0ef6dd34d | |||
| 47ca0903b1 |
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://getcomposer.org/schema.json",
|
||||
"name": "cleverogre/ogre-captcha",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.2",
|
||||
"title": "Ogre CAPTCHA",
|
||||
"description": "Protect your site with CAPTCHA",
|
||||
"author": "CleverOgre",
|
||||
|
||||
+2
-1
@@ -110,7 +110,8 @@ final class CLI {
|
||||
*/
|
||||
public function form(array $args, array $assoc_args):void {
|
||||
list($locations) = $args;
|
||||
extract($assoc_args);
|
||||
$all = $assoc_args['all'] ?? false;
|
||||
$disable = $assoc_args['disable'] ?? false;
|
||||
|
||||
if (empty($locations) && !$all) {
|
||||
WP_CLI::error('Please specify one or more form locations, or use --all.');
|
||||
|
||||
+9
-5
@@ -6,14 +6,14 @@
|
||||
* @author cleverogre
|
||||
* @copyright 2026 CleverOgre
|
||||
* @license GLP-3.0-or-later
|
||||
* @version 1.2.1
|
||||
* @version 1.2.2
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @wordpress-plugin
|
||||
* Plugin Name: Ogre CAPTCHA
|
||||
* Plugin URI: https://git.cleverogre.com/cleverogre/ogre-captcha/
|
||||
* Description: Protect your site with CAPTCHA
|
||||
* Version: 1.2.1
|
||||
* Version: 1.2.2
|
||||
* Requires at least: 6.0
|
||||
* Requires PHP: 8.2
|
||||
* Author: CleverOgre
|
||||
@@ -41,7 +41,9 @@ defined('ABSPATH') || exit;
|
||||
|
||||
require_once 'vendor/autoload.php';
|
||||
|
||||
final class Captcha extends Plugin {
|
||||
if (!class_exists('Ogre\Captcha')) {
|
||||
|
||||
final class Captcha extends Plugin {
|
||||
|
||||
public static function is_woocommerce_active():bool {
|
||||
return is_plugin_active('woocommerce/woocommerce.php');
|
||||
@@ -118,6 +120,8 @@ final class Captcha extends Plugin {
|
||||
GFAddOn::register(Addon::class);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Captcha::instance();
|
||||
Captcha::instance();
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://www.schemastore.org/package.json",
|
||||
"name": "cleverogre/ogre-captcha",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.2",
|
||||
"title": "Ogre CAPTCHA",
|
||||
"description": "Protect your site with CAPTCHA",
|
||||
"author": "CleverOgre",
|
||||
|
||||
+5
-1
@@ -3,7 +3,7 @@ Contributors: ogrecooper, cleverogre
|
||||
Tested up to: 7.0
|
||||
Requires at least: 6.0
|
||||
Requires PHP: 8.2
|
||||
Version: 1.2.1
|
||||
Version: 1.2.2
|
||||
License: GPLv3 or later
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
Copyright: CleverOgre
|
||||
@@ -28,6 +28,10 @@ If you don't know what plugin you have downloaded, please contact [CleverOgre](t
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.2.2 - 2026-06-11 =
|
||||
* Prevent main class loading bug
|
||||
* Fix WP CLI associative arguments
|
||||
|
||||
= 1.2.1 - 2026-06-09 =
|
||||
* Added WP CLI commands to modify settings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user